X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=protocol%2Fbc%2Ftypes%2Fspend.go;h=01d00f3711aac9b5c0587ea9711a6e765ea5e19e;hp=8642d35a925965d3a6bdb4b2f7a16cc1413c9778;hb=ddc7106558f020bde24cc337d51649611dddaba8;hpb=7d76d575f5101652fba26714b1b6b6523220e126 diff --git a/protocol/bc/types/spend.go b/protocol/bc/types/spend.go index 8642d35a..01d00f37 100644 --- a/protocol/bc/types/spend.go +++ b/protocol/bc/types/spend.go @@ -4,6 +4,16 @@ import ( "github.com/vapor/protocol/bc" ) +type TxType uint8 + +const ( + Binary TxType = iota + LoginCandidate + LogoutCandidate + Delegate + UnDelegate +) + // SpendInput satisfies the TypedInput interface and represents a spend transaction. type SpendInput struct { SpendCommitmentSuffix []byte // The unconsumed suffix of the output commitment