aboutsummaryrefslogtreecommitdiff
path: root/src/core_write.cpp
blob: 960974df8935e116eeabedf4d815a1a0bf06c860 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#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());
}