From: Yongfeng LI Date: Fri, 6 Apr 2018 02:38:35 +0000 (+0800) Subject: remove controlAction#ReferenceData (#536) X-Git-Tag: v1.0.5~195 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e3b124dc862427210269438511e0294a667622ea;p=bytom%2Fbytom.git remove controlAction#ReferenceData (#536) --- diff --git a/account/builder.go b/account/builder.go index 3efa0165..e3bd7f75 100755 --- a/account/builder.go +++ b/account/builder.go @@ -11,7 +11,6 @@ import ( "github.com/bytom/common" "github.com/bytom/consensus" "github.com/bytom/crypto/ed25519/chainkd" - chainjson "github.com/bytom/encoding/json" "github.com/bytom/errors" "github.com/bytom/protocol/bc" "github.com/bytom/protocol/bc/types" @@ -183,16 +182,6 @@ func UtxoToInputs(signer *signers.Signer, u *UTXO) (*types.TxInput, *txbuilder.S return txInput, sigInst, nil } -//NewControlAction create new control action -func (m *Manager) NewControlAction(amt bc.AssetAmount, accountID string, refData chainjson.Map) txbuilder.Action { - return &controlAction{ - accounts: m, - AssetAmount: amt, - AccountID: accountID, - ReferenceData: refData, - } -} - //DecodeControlAction unmarshal JSON-encoded data of control action func (m *Manager) DecodeControlAction(data []byte) (txbuilder.Action, error) { a := &controlAction{accounts: m} @@ -204,7 +193,6 @@ type controlAction struct { accounts *Manager bc.AssetAmount AccountID string `json:"account_id"` - ReferenceData chainjson.Map `json:"reference_data"` } func (a *controlAction) Build(ctx context.Context, b *txbuilder.TemplateBuilder) error {