mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Consolidate CTransaction hex encode/decode into core_io.h, core_{read,write}.cpp
This commit is contained in:
14
src/core_io.h
Normal file
14
src/core_io.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef __BITCOIN_CORE_IO_H__
|
||||
#define __BITCOIN_CORE_IO_H__
|
||||
|
||||
#include <string>
|
||||
|
||||
class CTransaction;
|
||||
|
||||
// core_read.cpp
|
||||
extern bool DecodeHexTx(CTransaction& tx, const std::string& strHexTx);
|
||||
|
||||
// core_write.cpp
|
||||
extern std::string EncodeHexTx(const CTransaction& tx);
|
||||
|
||||
#endif // __BITCOIN_CORE_IO_H__
|
||||
Reference in New Issue
Block a user