| 93 | } |
| 94 | |
| 95 | bool GetTxIndexInBlock(const uint256& txid, int& index) { |
| 96 | CBlockIndex* pIndex = chainActive.Tip(); |
| 97 | CBlock block; |
| 98 | if (!ReadBlockFromDisk(pIndex, block)) |
| 99 | return false; |
| 100 | |
| 101 | block.BuildMerkleTree(); |
| 102 | std::tuple<bool,int> ret = block.GetTxIndex(txid); |
| 103 | if (!std::get<0>(ret)) { |
| 104 | return false; |
| 105 | } |
| 106 | |
| 107 | index = std::get<1>(ret); |
| 108 | return true; |
| 109 | } |
| 110 | |
| 111 | bool GetRegScript(map<string, string>& mapRegScript) { |
| 112 | CRegID regId; |
nothing calls this directly
no test coverage detected