How can i make sure the notified block is confirmed and related transactions of block is final?
I'm trying to monitor my wallet for any deposits, Someone told me to make sure block is verified i need to monitor older block of blockchain with difference of 3, which means i always need to get the height=newest_height - 3, Is this idea correct? How can i trust the notified block? My problem is when i try test with simnet chain params, i will be notified just after generation of any new block with the height of newest one. should i put any configuration for getting a block differ than newest block height?
I'm using Golang, and library i'm using is from btcsuite btcwallet.
I would be appreciated if you guide me with your helpful suggestions.
PoW consensus does not provide for the concept of "finalizing" a block or transaction - for PoW this is a probabilistic concept. Since the PoW considers forks as normal, a block can theoretically be "canceled" at any depth. However, practice has established that the probability of replacing a block at a depth of more than 6 did not occur, therefore it is considered that if there are 6 or more other blocks "on top" of the block, then transactions in it are "conditionally finalized".
Thank you for your helpful answer. Can i set configuration when client listens to the server, server send me blocks with different of 6 to the best block? I mean server send me only new blocks of height=current_height - 6? I'm looking for an RPC request message to do that instead implementing a logic for
Sorry, but I don't work with bitcoin wallets and clients, so I don't know :-(
You said any block may be "canceled" in any height, so that made me think about implementing and handling the logic properly. Thank you for your answer :-)