OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
modify list transtaction
[bytom/vapor.git]
/
wallet
/
annotated.go
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"