OSDN Git Service

feat: add build crosschain input (#91)
[bytom/vapor.git] / blockchain / txfeed / txfeed.go
index 5a0396f..01691eb 100644 (file)
@@ -353,6 +353,11 @@ func buildAnnotatedInput(tx *types.Tx, i uint32) *query.AnnotatedInput {
                in.Type = "spend"
                in.ControlProgram = orig.ControlProgram()
                in.SpentOutputID = e.SpentOutputId
+
+       case *bc.CrossChainInput:
+               in.Type = "cross_chain_in"
+               in.ControlProgram = orig.ControlProgram()
+               in.SpentOutputID = e.MainchainOutputId
        }
 
        return in