4 "github.com/vapor/protocol/bc"
8 SpendCommitmentSuffix []byte
19 func NewDpos(arguments [][]byte, from, to string, sourceID bc.Hash, assetID bc.AssetID, stake, amount, sourcePos uint64, controlProgram []byte, t TxType, height uint64) *TxInput {
22 sc := SpendCommitment{
23 AssetAmount: bc.AssetAmount{
28 SourcePosition: sourcePos,
30 ControlProgram: controlProgram,
48 // InputType is the interface function for return the input type.
49 func (si *DposTx) InputType() uint8 { return DposInputType }