diff --git a/core/state_transition.go b/core/state_transition.go index e867d032bf..3fc5a635e9 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -42,8 +42,10 @@ The state transitioning model does all the necessary work to work out a valid ne 3) Create a new state object if the recipient is \0*32 4) Value transfer == If contract creation == - 4a) Attempt to run transaction data - 4b) If valid, use result as code for the new state object + + 4a) Attempt to run transaction data + 4b) If valid, use result as code for the new state object + == end == 5) Run Script section 6) Derive new state root @@ -262,13 +264,13 @@ func (st *StateTransition) preCheck() error { // TransitionDb will transition the state by applying the current message and // returning the evm execution result with following fields. // -// - used gas: -// total gas used (including gas being refunded) -// - returndata: -// the returned data from evm -// - concrete execution error: -// various **EVM** error which aborts the execution, -// e.g. ErrOutOfGas, ErrExecutionReverted +// - used gas: +// total gas used (including gas being refunded) +// - returndata: +// the returned data from evm +// - concrete execution error: +// various **EVM** error which aborts the execution, +// e.g. ErrOutOfGas, ErrExecutionReverted // // However if any consensus issue encountered, return the error directly with // nil evm execution result. diff --git a/tests/block_test.go b/tests/block_test.go index a1d700d02e..6bdb98679f 100644 --- a/tests/block_test.go +++ b/tests/block_test.go @@ -53,7 +53,7 @@ func TestBlockchain(t *testing.T) { // FIXME POS-618 bt.skipLoad(`.*ValidBlocks*`) bt.skipLoad(`.*InvalidBlocks*`) - //bt.skipLoad(`.*TransitionTests*`) + bt.skipLoad(`.*TransitionTests*`) bt.walk(t, blockTestDir, func(t *testing.T, name string, test *BlockTest) { if err := bt.checkFailure(t, test.Run(false)); err != nil { diff --git a/tests/state_test.go b/tests/state_test.go index eeb19570df..86f726336d 100644 --- a/tests/state_test.go +++ b/tests/state_test.go @@ -59,8 +59,8 @@ func TestState(t *testing.T) { st.skipLoad(`^stStaticCall/static_Call1MB`) // FIXME POS-618 - /*st.skipLoad(`.*micro/*`) - st.skipLoad(`.*main/*`) + //st.skipLoad(`.*micro/*`) + //st.skipLoad(`.*main/*`) st.skipLoad(`.*stSStoreTest*`) st.skipLoad(`.*stReturnDataTest*`) st.skipLoad(`.*stShift*`) @@ -115,7 +115,6 @@ func TestState(t *testing.T) { st.skipLoad(`.*stBadOpcode*`) st.skipLoad(`.*stStackTests*`) st.skipLoad(`.*stAttackTest*`) - */ // Broken tests: // Expected failures: