OSDN Git Service

fix: waive charging storage gas for cross-chain (#162)
[bytom/vapor.git] / protocol / validation / tx.go
index d7cc42b..68bac2e 100644 (file)
@@ -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 {