Fix block manager test failure
Let them use 1 for network ID
@@ -45,6 +45,10 @@ func (c *testChain) Genesis() []byte {
return c.gtx.Bytes()
}
+func (c *testChain) NID() int {
+ return 1
+}
+
func (c *testChain) CommitVoteSetDecoder() module.CommitVoteSetDecoder {
return c.vld
}
@@ -492,6 +496,10 @@ func (sm *testServiceManager) setTransitionExeChan(ch chan struct{}) {
sm.exeChan = ch
}
+func (sm *testServiceManager) GetNetworkID(result []byte) (int64, error) {
+ return 1, nil
+}
+
func (sm *testServiceManager) ProposeTransition(parent module.Transition, bi module.BlockInfo) (module.Transition, error) {
tr := &testTransition{}
tr.baseValidators = parent.NextValidators().(*testValidatorList)
