helium / blockchain-core

Apache License 2.0
214 stars 85 forks source link

Await CLI sync stream response #1414

Closed jadeallenx closed 2 years ago

jadeallenx commented 2 years ago

Problem to solve: The cli sync command over optimistically assumes that sync starts once a stream is established.

Solution: We will block on a response from the sync stream, and report the outcome to the shell.

jadeallenx commented 2 years ago
_build/dev/rel/miner/bin/miner peer sync /p2p/115PmCR6fpFihdjw626JXYdUEdzwjh66yoWzWkMvB9CRGEx1U6G
ok