aboutsummaryrefslogtreecommitdiff
path: root/src/script/script_error.cpp
diff options
context:
space:
mode:
authorJohn Newbery <[email protected]>2020-08-21 16:10:48 +0200
committerJon Atack <[email protected]>2020-08-26 11:57:30 +0200
commitfb56d37612dea6666e7da73d671311a697570dae (patch)
treecf08424927bce9293cbb42f30b0758c271b43841 /src/script/script_error.cpp
parenttest: use CInv::MSG_WITNESS_TX flag in p2p_segwit (diff)
downloaddiscoin-fb56d37612dea6666e7da73d671311a697570dae.tar.xz
discoin-fb56d37612dea6666e7da73d671311a697570dae.zip
p2p: ensure inv is GenMsgTx before ToGenTxid in inv processing
and otherwise log that an unknown INV type was received. In INV processing, when handling transaction type inv messages, ToGenTxid() expects that we constructed the CInv ourselves or that we verified that it is for a transaction type CInv. Therefore, change this `else` branch into an `else if (inv.GenMsgTx())` to make this safer and log any INVs that fall through.
Diffstat (limited to 'src/script/script_error.cpp')
0 files changed, 0 insertions, 0 deletions