0
How does a light node know which block its transaction got included in?
Say a light node sends out a transaction spending its UTXO. Does it get some sort of notification when its transaction is mined in some block or does it need to manually ask a full node if its transaction is present in every new block that is mined after it made the transaction?
Also, say a wallet program was loaded after a month of inactivity. Now the wallet needs to know the balance of its address? How does it go about reconstructing its balance after downloading the latest block headers?
Note here that I'm asking about the low level apis and not any service like a block explorer!
how does the full node know which block to search for the transaction in? Does it persist all the accepted transactions? Or does it do a linear search across all blocks? – pd176 – 2018-09-11T11:05:34.453
@pd176 that's an implementation detail that probably varies depending on who wrote the code used by that node. – RedGrittyBrick – 2018-09-11T11:08:06.513