OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bd22d2
)
modify list transtaction
v0.1_list_transaction
author
mars
<mars@bytom.io>
Wed, 12 Jun 2019 10:31:36 +0000
(18:31 +0800)
committer
mars
<mars@bytom.io>
Wed, 12 Jun 2019 10:31:36 +0000
(18:31 +0800)
wallet/annotated.go
patch
|
blob
|
history
diff --git
a/wallet/annotated.go
b/wallet/annotated.go
index
4bcc507
..
b47f3fb
100644
(file)
--- a/
wallet/annotated.go
+++ b/
wallet/annotated.go
@@
-193,6
+193,9
@@
func (w *Wallet) BuildAnnotatedInput(tx *types.Tx, i uint32) *query.AnnotatedInp
for _, arg := range arguments {
in.WitnessArguments = append(in.WitnessArguments, arg)
}
+ if _, ok := tx.Entries[*e.SpentOutputId].(*bc.VoteOutput); ok {
+ in.Type = "cancel_vote"
+ }
case *bc.Coinbase:
in.Type = "coinbase"