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
rename unvote to veto (#191)
[bytom/vapor.git]
/
protocol
/
bc
/
types
/
txinput.go
diff --git
a/protocol/bc/types/txinput.go
b/protocol/bc/types/txinput.go
index
4918841
..
888c942
100644
(file)
--- a/
protocol/bc/types/txinput.go
+++ b/
protocol/bc/types/txinput.go
@@
-180,7
+180,7
@@
func (t *TxInput) readFrom(r *blockchain.Reader) (err error) {
case VetoInputType:
ui := new(VetoInput)
t.TypedInput = ui
case VetoInputType:
ui := new(VetoInput)
t.TypedInput = ui
- if ui.
Unvote
CommitmentSuffix, err = ui.SpendCommitment.readFrom(r, 1); err != nil {
+ if ui.
Veto
CommitmentSuffix, err = ui.SpendCommitment.readFrom(r, 1); err != nil {
return err
}
return err
}
@@
-286,7
+286,7
@@
func (t *TxInput) writeInputCommitment(w io.Writer) (err error) {
if _, err = w.Write([]byte{VetoInputType}); err != nil {
return err
}
if _, err = w.Write([]byte{VetoInputType}); err != nil {
return err
}
- return inp.SpendCommitment.writeExtensibleString(w, inp.
Unvote
CommitmentSuffix, t.AssetVersion)
+ return inp.SpendCommitment.writeExtensibleString(w, inp.
Veto
CommitmentSuffix, t.AssetVersion)
}
return nil
}
}
return nil
}