Function FlashNode.monitorBlockchain

Monitors the blockchain for any new externalized blocks.

void monitorBlockchain();

If a funding / closing / trigger / update / settlement transaction belong to a channel is detected, it will trigger that channel's handler for this event.

This enables changing the channel's state from open to closed.