Skip to content

Commit 2602589

Browse files
change info log to debug (#1544)
* change info log to debug * Apply suggestions from code review remove unwanted changes
1 parent 7b3758c commit 2602589

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

core/state_transition.go

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ The state transitioning model does all the necessary work to work out a valid ne
4343
3) Create a new state object if the recipient is \0*32
4444
4) Value transfer
4545
== If contract creation ==
46-
4a) Attempt to run transaction data
47-
4b) If valid, use result as code for the new state object
46+
47+
4a) Attempt to run transaction data
48+
4b) If valid, use result as code for the new state object
49+
4850
== end ==
4951
5) Run Script section
5052
6) Derive new state root
@@ -224,27 +226,27 @@ func (st *StateTransition) preCheck() error {
224226
// TransitionDb will transition the state by applying the current message and
225227
// returning the evm execution result with following fields.
226228
//
227-
// - used gas:
228-
// total gas used (including gas being refunded)
229-
// - returndata:
230-
// the returned data from evm
231-
// - concrete execution error:
232-
// various **EVM** error which aborts the execution,
233-
// e.g. ErrOutOfGas, ErrExecutionReverted
229+
// - used gas:
230+
// total gas used (including gas being refunded)
231+
// - returndata:
232+
// the returned data from evm
233+
// - concrete execution error:
234+
// various **EVM** error which aborts the execution,
235+
// e.g. ErrOutOfGas, ErrExecutionReverted
234236
//
235237
// However if any consensus issue encountered, return the error directly with
236238
// nil evm execution result.
237239
//
238240
// Quorum:
239-
// 1. Intrinsic gas is calculated based on the encrypted payload hash
240-
// and NOT the actual private payload.
241-
// 2. For private transactions, we only deduct intrinsic gas from the gas pool
242-
// regardless the current node is party to the transaction or not.
243-
// 3. For privacy marker transactions, we only deduct the PMT gas from the gas pool. No gas is deducted
244-
// for the internal private transaction, regardless of whether the current node is a party.
245-
// 4. With multitenancy support, we enforce the party set in the contract index must contain all
246-
// parties from the transaction. This is to detect unauthorized access from a legit proxy contract
247-
// to an unauthorized contract.
241+
// 1. Intrinsic gas is calculated based on the encrypted payload hash
242+
// and NOT the actual private payload.
243+
// 2. For private transactions, we only deduct intrinsic gas from the gas pool
244+
// regardless the current node is party to the transaction or not.
245+
// 3. For privacy marker transactions, we only deduct the PMT gas from the gas pool. No gas is deducted
246+
// for the internal private transaction, regardless of whether the current node is a party.
247+
// 4. With multitenancy support, we enforce the party set in the contract index must contain all
248+
// parties from the transaction. This is to detect unauthorized access from a legit proxy contract
249+
// to an unauthorized contract.
248250
func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
249251
// First check this message satisfies all consensus rules before
250252
// applying the message. The rules include these clauses
@@ -367,7 +369,7 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
367369
ret, leftoverGas, vmerr = evm.Call(sender, to, data, st.gas, st.value)
368370
}
369371
if vmerr != nil {
370-
log.Info("VM returned with error", "err", vmerr)
372+
log.Debug("VM returned with error", "err", vmerr)
371373
// The only possible consensus-error would be if there wasn't
372374
// sufficient balance to make the transfer happen. The first
373375
// balance transfer may never fail.

0 commit comments

Comments
 (0)