diff options
| author | Pieter Wuille <[email protected]> | 2016-11-11 16:23:17 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-12-02 18:37:43 -0800 |
| commit | 81e3228fcb33e8ed32d8b9fbe917444ba080073a (patch) | |
| tree | 345dd81bc1661003ea8957fe1f69050b3187d4ac /src/net_processing.cpp | |
| parent | Make DecodeHexTx return a CMutableTransaction (diff) | |
| download | discoin-81e3228fcb33e8ed32d8b9fbe917444ba080073a.tar.xz discoin-81e3228fcb33e8ed32d8b9fbe917444ba080073a.zip | |
Make CTransaction actually immutable
Diffstat (limited to 'src/net_processing.cpp')
| -rw-r--r-- | src/net_processing.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 747167264..b1283c236 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1594,8 +1594,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, deque<COutPoint> vWorkQueue; vector<uint256> vEraseQueue; - CTransaction tx; - vRecv >> tx; + CTransaction tx(deserialize, vRecv); CInv inv(MSG_TX, tx.GetHash()); pfrom->AddInventoryKnown(inv); |