[rpc] Public interfaces to GetTransaction block until synced.

Now that the transaction index is updated asynchronously, in order to
preserve the current behavior of public interfaces, the code blocks
until the transaction index is caught up with the current state of the
blockchain.
This commit is contained in:
Jim Posen
2017-12-08 11:49:08 -08:00
parent a03f804f2a
commit 6d772a3d44
3 changed files with 28 additions and 9 deletions

View File

@@ -47,8 +47,6 @@ static std::mutex cs_blockchange;
static std::condition_variable cond_blockchange;
static CUpdatedBlock latestblock;
extern void TxToJSON(const CTransaction& tx, const uint256 hashBlock, UniValue& entry);
/* Calculate the difficulty for a given block index,
* or the block index of the given chain.
*/