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
fix: waive charging storage gas for cross-chain (#162)
[bytom/vapor.git]
/
protocol
/
validation
/
tx.go
diff --git
a/protocol/validation/tx.go
b/protocol/validation/tx.go
index
d7cc42b
..
68bac2e
100644
(file)
--- a/
protocol/validation/tx.go
+++ b/
protocol/validation/tx.go
@@
-255,6
+255,7
@@
func checkValid(vs *validationState, e bc.Entry) (err error) {
if err = checkValidDest(&vs2, e.WitnessDestination); err != nil {
return errors.Wrap(err, "checking cross-chain input destination")
}
+ vs.gasStatus.StorageGas = 0
case *bc.Spend:
if e.SpentOutputId == nil {