OSDN Git Service

add cancel vote
[bytom/vapor.git] / blockchain / txfeed / txfeed.go
index 01691eb..ea71a8a 100644 (file)
@@ -358,6 +358,11 @@ func buildAnnotatedInput(tx *types.Tx, i uint32) *query.AnnotatedInput {
                in.Type = "cross_chain_in"
                in.ControlProgram = orig.ControlProgram()
                in.SpentOutputID = e.MainchainOutputId
+
+       case *bc.CancelVote:
+               in.Type = "cancel_vote"
+               in.ControlProgram = orig.ControlProgram()
+               in.SpentOutputID = e.SpentOutputId
        }
 
        return in