From 533504850b3ffc14c19b75b3d68c5425f1ddc008 Mon Sep 17 00:00:00 2001 From: Charlie Wu Date: Thu, 17 Jun 2021 23:28:50 +0800 Subject: [PATCH] MOD: utxo add sender --- core/wallet.go | 1 + service/wallet/wallet.go | 1 + 2 files changed, 2 insertions(+) diff --git a/core/wallet.go b/core/wallet.go index 7167a9b..c379418 100644 --- a/core/wallet.go +++ b/core/wallet.go @@ -28,6 +28,7 @@ type ( CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` Version int64 `sql:"NOT NULL" json:"version,omitempty"` + Sender string `sql:"type:char(36)" json:"sender,omitempty"` TraceID string `sql:"type:char(36)" json:"trace_id,omitempty"` AssetID string `sql:"type:char(36)" json:"asset_id,omitempty"` Amount decimal.Decimal `sql:"type:decimal(64,8)" json:"amount,omitempty"` diff --git a/service/wallet/wallet.go b/service/wallet/wallet.go index 7089d48..ef52f71 100644 --- a/service/wallet/wallet.go +++ b/service/wallet/wallet.go @@ -212,6 +212,7 @@ func convertUTXO(raw *mixin.MultisigUTXO) *core.Output { return &core.Output{ CreatedAt: raw.CreatedAt, UpdatedAt: raw.UpdatedAt, + Sender: raw.Sender, TraceID: raw.UTXOID, AssetID: raw.AssetID, Amount: raw.Amount,