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-change-request.go | |
parent | a63e0d313300fc85eba8254963800a312fb14e9b (diff) | |
download | tangerine-consensus-1b352d9e52839c8b6c316c2601d08c91c995d8f0.tar tangerine-consensus-1b352d9e52839c8b6c316c2601d08c91c995d8f0.tar.gz tangerine-consensus-1b352d9e52839c8b6c316c2601d08c91c995d8f0.tar.bz2 tangerine-consensus-1b352d9e52839c8b6c316c2601d08c91c995d8f0.tar.lz tangerine-consensus-1b352d9e52839c8b6c316c2601d08c91c995d8f0.tar.xz tangerine-consensus-1b352d9e52839c8b6c316c2601d08c91c995d8f0.tar.zst tangerine-consensus-1b352d9e52839c8b6c316c2601d08c91c995d8f0.zip |
core: fix bugs found when node-set is not equal to notary-set (#362)
Diffstat (limited to 'core/test/state-change-request.go')
-rw-r--r-- | core/test/state-change-request.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/test/state-change-request.go b/core/test/state-change-request.go index 84d4d3f..1515fd2 100644 --- a/core/test/state-change-request.go +++ b/core/test/state-change-request.go @@ -185,7 +185,11 @@ func (req *StateChangeRequest) String() (ret string) { ret += fmt.Sprintf( "{Type:AddNode %s", types.NewNodeID(req.Payload.(crypto.PublicKey)).String()[:6]) + default: + panic(fmt.Errorf( + "attempting to dump unknown type of state change request: %v", + req.Type)) } - panic(fmt.Errorf( - "attempting to dump unknown type of state change request: %v", req.Type)) + ret += "}" + return } |