X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=patch%2Fpatch;h=774363a851a3404d37005d1399c5315435fbb5f5;hb=1a1352e1178310c4ff5859e2553b1aeb436779a9;hp=eadd113609e1dbb67761543c22c7236dc1623718;hpb=5c10a2976f94f8c2deee76cff2a1f2777dbd2d25;p=electrum-server.git diff --git a/patch/patch b/patch/patch index eadd113..774363a 100644 --- a/patch/patch +++ b/patch/patch @@ -43,18 +43,18 @@ index 43bd5dd..b38ce88 100644 CCoins coins; if (view.GetCoins(hash, coins)) diff --git a/src/main.h b/src/main.h -index d810bff..fba793c 100644 +index 8327141..fa27788 100644 --- a/src/main.h +++ b/src/main.h -@@ -115,7 +115,7 @@ unsigned int ComputeMinWork(unsigned int nBase, int64 nTime); - int GetNumBlocksOfPeers(); - bool IsInitialBlockDownload(); +@@ -156,7 +156,7 @@ bool IsInitialBlockDownload(); + /** Format a string that describes several potential problems detected by the core */ std::string GetWarnings(std::string strFor); + /** Retrieve a transaction (from memory pool, or from disk, if possible) */ -bool GetTransaction(const uint256 &hash, CTransaction &tx, uint256 &hashBlock, bool fAllowSlow = false); +bool GetTransaction(const uint256 &hash, CTransaction &tx, uint256 &hashBlock, bool fAllowSlow = false, int height = -1); + /** Connect/disconnect blocks until pindexNew is the new tip of the active block chain */ bool SetBestChain(CBlockIndex* pindexNew); - bool ConnectBestBlock(); - CBlockIndex * InsertBlockIndex(uint256 hash); + /** Find the best known block, and make it the tip of the block chain */ diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 3fde463..e60b71e 100644 --- a/src/rpcblockchain.cpp