X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=protocol%2Fstate%2Fvote_result.go;h=7ea2a82adb4a3b00d0d3fcf79994bdce9c3eec6a;hp=6a434c8dcb78e49a411670ac919b767a0dad3034;hb=f30b7541256e6a7f6f875994cb08edf3bddab93c;hpb=94ffe408f68d354070374ef01b5c1578b79d2cd9 diff --git a/protocol/state/vote_result.go b/protocol/state/vote_result.go index 6a434c8d..7ea2a82a 100644 --- a/protocol/state/vote_result.go +++ b/protocol/state/vote_result.go @@ -75,7 +75,7 @@ func (v *VoteResult) ApplyBlock(block *types.Block) error { } for _, output := range tx.Outputs { - voteOutput, ok := output.TypedOutput.(*types.VoteTxOutput) + voteOutput, ok := output.TypedOutput.(*types.VoteOutput) if !ok { continue } @@ -148,7 +148,7 @@ func (v *VoteResult) DetachBlock(block *types.Block) error { } for _, output := range tx.Outputs { - voteOutput, ok := output.TypedOutput.(*types.VoteTxOutput) + voteOutput, ok := output.TypedOutput.(*types.VoteOutput) if !ok { continue }