non-party must refund gas for private transactions

This commit is contained in:
Trung Nguyen 2019-06-12 17:09:49 -04:00
parent 5a80e7a1ba
commit bacd5dc3c9
No known key found for this signature in database
GPG Key ID: 4636434ED9505EB7
1 changed files with 1 additions and 0 deletions

View File

@ -254,6 +254,7 @@ func (st *StateTransition) TransitionDb() (ret []byte, usedGas uint64, failed bo
}
//if input is empty for the smart contract call, return
if len(data) == 0 && isPrivate {
st.refundGas()
return nil, 0, false, nil
}