diff options
| author | Jim Posen <[email protected]> | 2017-12-08 11:49:08 -0800 |
|---|---|---|
| committer | Jim Posen <[email protected]> | 2018-04-25 11:25:17 -0700 |
| commit | 6d772a3d441875fbdcd7c15aaa8d9b97f61aa3a9 (patch) | |
| tree | c154280fa31e41b205323aff9756312359430fbc /src/rpc/blockchain.cpp | |
| parent | [index] Move disk IO logic from GetTransaction to TxIndex::FindTx. (diff) | |
| download | discoin-6d772a3d441875fbdcd7c15aaa8d9b97f61aa3a9.tar.xz discoin-6d772a3d441875fbdcd7c15aaa8d9b97f61aa3a9.zip | |
[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.
Diffstat (limited to 'src/rpc/blockchain.cpp')
| -rw-r--r-- | src/rpc/blockchain.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 06c68ea27..19f964138 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -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. */ |