pokt-network / pocket

Official implementation of the Pocket Network Protocol v1
https://pokt.network
MIT License
61 stars 33 forks source link

hack: 😴 sleep enough for cli debug subcommands to broadcast #954

Closed 0xBigBoss closed 11 months ago

0xBigBoss commented 11 months ago

When running commands like p1 dui TriggerNextView, seems the program exits faster than the p2p module can broadcast. This PR introduces a magic number to give the p2p module enough time to broadcast the debug messages when run as a subcommand.

This is working for my e2e testing for now.