• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revision74691a4dce2d41fb4705fd430a9ed6d499e23f0c (tree)
Time2019-06-24 15:34:12
Authormars <mars@byto...>
Commitermars

Log Message

fix

Change Summary

Incremental Difference

--- a/account/utxo_keeper.go
+++ b/account/utxo_keeper.go
@@ -125,11 +125,10 @@ func (uk *utxoKeeper) Reserve(accountID string, assetID *bc.AssetID, amount uint
125125 }
126126
127127 if optAmount+reservedAmount < amount {
128- err := ErrImmature
129128 if vote != nil {
130- err = ErrVoteLock
129+ return nil, ErrVoteLock
131130 }
132- return nil, err
131+ return nil, ErrImmature
133132 }
134133
135134 if optAmount < amount {
Show on old repository browser