mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 05:57:59 +01:00
Add importprunedfunds rpc call
This commit is contained in:
@@ -75,9 +75,9 @@ protected:
|
||||
|
||||
/**
|
||||
* recursive function that traverses tree nodes, consuming the bits and hashes produced by TraverseAndBuild.
|
||||
* it returns the hash of the respective node.
|
||||
* it returns the hash of the respective node and its respective index.
|
||||
*/
|
||||
uint256 TraverseAndExtract(int height, unsigned int pos, unsigned int &nBitsUsed, unsigned int &nHashUsed, std::vector<uint256> &vMatch);
|
||||
uint256 TraverseAndExtract(int height, unsigned int pos, unsigned int &nBitsUsed, unsigned int &nHashUsed, std::vector<uint256> &vMatch, std::vector<unsigned int> &vnIndex);
|
||||
|
||||
public:
|
||||
|
||||
@@ -110,10 +110,11 @@ public:
|
||||
CPartialMerkleTree();
|
||||
|
||||
/**
|
||||
* extract the matching txid's represented by this partial merkle tree.
|
||||
* extract the matching txid's represented by this partial merkle tree
|
||||
* and their respective indices within the partial tree.
|
||||
* returns the merkle root, or 0 in case of failure
|
||||
*/
|
||||
uint256 ExtractMatches(std::vector<uint256> &vMatch);
|
||||
uint256 ExtractMatches(std::vector<uint256> &vMatch, std::vector<unsigned int> &vnIndex);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user