Consolidate CTransaction hex encode/decode into core_io.h, core_{read,write}.cpp

This commit is contained in:
Jeff Garzik
2014-06-23 23:10:24 -04:00
parent 2920322871
commit ae775b5b31
7 changed files with 73 additions and 33 deletions

14
src/core_io.h Normal file
View 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__