diff options
| author | Suhas Daftuar <[email protected]> | 2020-01-30 09:35:00 -0500 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2020-07-19 02:05:29 -0400 |
| commit | ac88e2eb619821ad7ae1d45d4b40be69051d3999 (patch) | |
| tree | 41670146c75c72c3923056642609093a15d8857a /src/net_processing.h | |
| parent | Add wtxids to recentRejects instead of txids (diff) | |
| download | discoin-ac88e2eb619821ad7ae1d45d4b40be69051d3999.tar.xz discoin-ac88e2eb619821ad7ae1d45d4b40be69051d3999.zip | |
Add support for tx-relay via wtxid
This adds a field to CNodeState that tracks whether to relay transactions with
that peer via wtxid, instead of txid. As of this commit the field will always
be false, but in a later commit we will add a way to negotiate turning this on
via p2p messages exchanged with the peer.
Diffstat (limited to 'src/net_processing.h')
| -rw-r--r-- | src/net_processing.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.h b/src/net_processing.h index fa1555fbe..053482876 100644 --- a/src/net_processing.h +++ b/src/net_processing.h @@ -100,6 +100,6 @@ struct CNodeStateStats { bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats); /** Relay transaction to every node */ -void RelayTransaction(const uint256&, const CConnman& connman); +void RelayTransaction(const uint256& txid, const uint256& wtxid, const CConnman& connman) EXCLUSIVE_LOCKS_REQUIRED(cs_main); #endif // BITCOIN_NET_PROCESSING_H |