diff options
| author | gzhao408 <[email protected]> | 2020-05-01 15:48:23 -0700 |
|---|---|---|
| committer | gzhao408 <[email protected]> | 2020-05-19 14:23:19 -0700 |
| commit | 9d3f7eb9860254eb787ebe2734fd6a26bcf365c1 (patch) | |
| tree | c1acea6568f9dd071859a4af0570984920157f81 /src/httpserver.cpp | |
| parent | [rpc] add unbroadcast info to mempool entries and getmempoolinfo (diff) | |
| download | discoin-9d3f7eb9860254eb787ebe2734fd6a26bcf365c1.tar.xz discoin-9d3f7eb9860254eb787ebe2734fd6a26bcf365c1.zip | |
[mempool] sanity check that all unbroadcast txns are in mempool
- before reattempting broadcast for unbroadcast txns, check they are in mempool and remove if not
- this protects from memory leaks and network spam just in case unbroadcast set (incorrectly) has extra txns
- check that tx is in mempool before adding to unbroadcast set to try to prevent this from happening
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions