core: drop GetStandBy* methods
They're misleading now that we have variable number of committee members/validators. The standby list can be seen in the configuration and the appropriate numbers can be received from it also.
This commit is contained in:
parent
e621f746a7
commit
cda1c75db3
11 changed files with 69 additions and 72 deletions
|
@ -64,7 +64,9 @@ func main() {
|
|||
bc, err := newChain()
|
||||
handleError("can't initialize blockchain", err)
|
||||
|
||||
valScript, err := smartcontract.CreateDefaultMultiSigRedeemScript(bc.GetStandByValidators())
|
||||
nbVals, err := bc.GetNextBlockValidators()
|
||||
handleError("can't get next block validators", err)
|
||||
valScript, err := smartcontract.CreateDefaultMultiSigRedeemScript(nbVals)
|
||||
handleError("can't create verification script", err)
|
||||
lastBlock, err := bc.GetBlock(bc.GetHeaderHash(int(bc.BlockHeight())))
|
||||
handleError("can't fetch last block", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue