From 1b352d9e52839c8b6c316c2601d08c91c995d8f0 Mon Sep 17 00:00:00 2001 From: Mission Liao Date: Fri, 7 Dec 2018 18:02:59 +0800 Subject: core: fix bugs found when node-set is not equal to notary-set (#362) --- core/test/state.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/test/state.go') 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 { -- cgit v1.2.3