diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-12-07 18:02:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-07 18:02:59 +0800 |
commit | 1b352d9e52839c8b6c316c2601d08c91c995d8f0 (patch) | |
tree | 32aff3397d61b0e6f5e2d6f407ec5ab3a69311d8 /core/test/state.go | |
parent | a63e0d313300fc85eba8254963800a312fb14e9b (diff) | |
download | dexon-consensus-1b352d9e52839c8b6c316c2601d08c91c995d8f0.tar dexon-consensus-1b352d9e52839c8b6c316c2601d08c91c995d8f0.tar.gz dexon-consensus-1b352d9e52839c8b6c316c2601d08c91c995d8f0.tar.bz2 dexon-consensus-1b352d9e52839c8b6c316c2601d08c91c995d8f0.tar.lz dexon-consensus-1b352d9e52839c8b6c316c2601d08c91c995d8f0.tar.xz dexon-consensus-1b352d9e52839c8b6c316c2601d08c91c995d8f0.tar.zst dexon-consensus-1b352d9e52839c8b6c316c2601d08c91c995d8f0.zip |
core: fix bugs found when node-set is not equal to notary-set (#362)
Diffstat (limited to 'core/test/state.go')
-rw-r--r-- | core/test/state.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/test/state.go b/core/test/state.go index b360fa2..30ed8af 100644 --- a/core/test/state.go +++ b/core/test/state.go @@ -177,6 +177,11 @@ func (s *State) Snapshot() (*types.Config, []crypto.PublicKey) { }, nodes } +// AttachLogger allows to attach custom logger. +func (s *State) AttachLogger(logger common.Logger) { + s.logger = logger +} + func (s *State) unpackPayload( raw *rawStateChangeRequest) (v interface{}, err error) { switch raw.Type { |