From c52f31d2c44b7457797d8b2597e305cf0397cc22 Mon Sep 17 00:00:00 2001 From: Sinh Vu Date: Tue, 23 Jul 2019 17:45:29 +0700 Subject: [PATCH] update max masternodes --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index cf1eb23836..99f561998e 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1881,7 +1881,7 @@ func (bc *BlockChain) UpdateM1() error { // using old masterndoes maxMasternodes = common.MaxMasternodes } - if len(ms) > common.MaxMasternodes { + if len(ms) > maxMasternodes { err = engine.UpdateMasternodes(bc, bc.CurrentHeader(), ms[:maxMasternodes]) } else { err = engine.UpdateMasternodes(bc, bc.CurrentHeader(), ms)