mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
16 lines
266 B
C++
16 lines
266 B
C++
|
|
||
|
#include "core_io.h"
|
||
|
#include "core.h"
|
||
|
#include "serialize.h"
|
||
|
#include "util.h"
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
string EncodeHexTx(const CTransaction& tx)
|
||
|
{
|
||
|
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
|
||
|
ssTx << tx;
|
||
|
return HexStr(ssTx.begin(), ssTx.end());
|
||
|
}
|
||
|
|