HomePhabricator

Fix wallet RPC race by waiting for callbacks in sendrawtransaction

Description

Fix wallet RPC race by waiting for callbacks in sendrawtransaction

Summary:
This is partial backport of Core PR10286 : https://github.com/bitcoin/bitcoin/pull/10286/commits/cb06edf938302166030db19017c27889ea5b10b6

This patch was merged with the following bug fix:

Fix sendrawtransaction hang when sending a tx already in mempool

This is a backport of Core PR11738 : https://github.com/bitcoin/bitcoin/pull/11738

Test Plan:

make check
./test/functional/test_runner.py --extended

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Subscribers: jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D3165

Details

Provenance
Matt Corallo <git@bluematt.me>Authored on Jun 21 2017, 01:21
deadalnixCommitted on Jun 1 2019, 15:48
deadalnixPushed on Jun 2 2019, 12:44
Reviewer
Restricted Project
Differential Revision
D3165: Fix wallet RPC race by waiting for callbacks in sendrawtransaction
Parents
rSTAGINGb728870a8d8c: Also call other wallet notify callbacks in scheduler thread
Branches
Unknown
Tags
Unknown