• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revision7216c1ef09849e99e5c22c67f3f6ee9e3f5f6c75 (tree)
Time2019-07-24 21:52:18
Authorshenao78 <shenao.78@163....>
Commitershenao78

Log Message

opt code

Change Summary

Incremental Difference

--- a/protocol/consensus_node_manager_test.go
+++ b/protocol/consensus_node_manager_test.go
@@ -2,7 +2,7 @@ package protocol
22
33 import (
44 "testing"
5-
5+
66 "github.com/vapor/consensus"
77 "github.com/vapor/crypto/ed25519/chainkd"
88 "github.com/vapor/database/storage"
@@ -581,7 +581,7 @@ func TestGetConsensusNodes(t *testing.T) {
581581 }
582582
583583 for i, c := range cases {
584- store := newMockStore()
584+ store := newDummyStore()
585585 for _, header := range c.storedBlockHeaders {
586586 store.SaveBlockHeader(header)
587587 }
@@ -625,7 +625,7 @@ type dummyStore struct {
625625 consensusResults map[uint64]*state.ConsensusResult
626626 }
627627
628-func newMockStore() *dummyStore {
628+func newDummyStore() *dummyStore {
629629 return &dummyStore{
630630 blockHeaders: make(map[string]*types.BlockHeader),
631631 consensusResults: make(map[uint64]*state.ConsensusResult),
Show on old repository browser