added reverse takedown of the validators to avoid the following error

[app] PoP broadcast tx failed: node0.info: key not found

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2024-03-11 10:03:31 +01:00
parent 0715d9a87a
commit a5da29eb6e
No known key found for this signature in database

View File

@ -749,7 +749,8 @@ func (n *Network) Cleanup() {
n.Logger.Log("cleaning up test network...")
for _, v := range n.Validators {
for i := len(n.Validators) - 1; i >= 0; i-- {
v := n.Validators[i]
if v.tmNode != nil && v.tmNode.IsRunning() {
_ = v.tmNode.Stop()
}