aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/blockchain.cpp
diff options
context:
space:
mode:
authorJim Posen <jimpo@coinbase.com>2017-12-08 11:49:08 -0800
committerJim Posen <jimpo@coinbase.com>2018-04-25 11:25:17 -0700
commit6d772a3d441875fbdcd7c15aaa8d9b97f61aa3a9 (patch)
treec154280fa31e41b205323aff9756312359430fbc /src/rpc/blockchain.cpp
parenta03f804f2aa0261ed3a47103dfe989ebd9302480 (diff)
downloadbitcoin-6d772a3d441875fbdcd7c15aaa8d9b97f61aa3a9.tar.xz
[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.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp
index 06c68ea27c..19f964138e 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.
*/