lightchain
lightchain copied to clipboard
Refactor node booting process, each node should spawn in a separate goroutine
Instead of a blocking call, nodes that depend on each other should use a channel for communication indicating when they are fully booted so the dependent nodes can boot as well. The same applies to shutdown, we should first shutdown the ABCI, then wait till it's full shutdown and then flush the ethereum changes to disk etc.