Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
252self.log.info("listreceivedbyaddress includes address with defaults")253assert_array_result(self.nodes[0].listreceivedbyaddress(),254{"address": address},255{"address": address, "amount": reward})257self.log.info("listreceivedbylabel includes label with defaults")258assert_array_result(self.nodes[0].listreceivedbylabel(),259{"label": label},260{"label": label, "amount": reward})262self.log.info("Invalidate block that paid to address")263self.nodes[0].invalidateblock(hash)265self.log.info("getreceivedbyaddress does not include invalidated block when minconf is 0 when including immature coinbase")266balance = self.nodes[0].getreceivedbyaddress(address=address, minconf=0, include_immature_coinbase=True)267assert_equal(balance, 0)269self.log.info("getreceivedbylabel does not include invalidated block when minconf is 0 when including immature coinbase")270balance = self.nodes[0].getreceivedbylabel(label="label", minconf=0, include_immature_coinbase=True)271assert_equal(balance, 0)273self.log.info("listreceivedbyaddress does not include invalidated block when minconf is 0 when including immature coinbase")274assert_array_result(self.nodes[0].listreceivedbyaddress(minconf=0, include_immature_coinbase=True),275{"address": address},276{}, True)278self.log.info("listreceivedbylabel does not include invalidated block when minconf is 0 when including immature coinbase")279assert_array_result(self.nodes[0].listreceivedbylabel(minconf=0, include_immature_coinbase=True),280{"label": label},281{}, True)284if __name__ == '__main__':285ReceivedByTest(__file__).main()
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.