OSDN Git Service

fix vote hash with state (#1929) 2.0.0-alpha
authorboomyl <563807243@qq.com>
Fri, 30 Apr 2021 07:39:25 +0000 (15:39 +0800)
committerGitHub <noreply@github.com>
Fri, 30 Apr 2021 07:39:25 +0000 (15:39 +0800)
protocol/bc/vote_output.go

index ede1565..793ee86 100644 (file)
@@ -7,6 +7,7 @@ func (o *VoteOutput) writeForHash(w io.Writer) {
        mustWriteForHash(w, o.Source)
        mustWriteForHash(w, o.ControlProgram)
        mustWriteForHash(w, o.Vote)
+       mustWriteForHash(w, o.StateData)
 }
 
 // NewCrossChainOutput creates a new CrossChainOutput.