diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-07-06 19:56:56 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-07-06 19:56:56 +0800 |
commit | b7e8d954ef7f81d5b86e4287d99534c5528c2bfa (patch) | |
tree | 9f096c443a43360be26fcfada48c794a4d41259d | |
parent | 457a3c8f7691314b30909787b952fccebf7f38df (diff) | |
download | go-tangerine-b7e8d954ef7f81d5b86e4287d99534c5528c2bfa.tar go-tangerine-b7e8d954ef7f81d5b86e4287d99534c5528c2bfa.tar.gz go-tangerine-b7e8d954ef7f81d5b86e4287d99534c5528c2bfa.tar.bz2 go-tangerine-b7e8d954ef7f81d5b86e4287d99534c5528c2bfa.tar.lz go-tangerine-b7e8d954ef7f81d5b86e4287d99534c5528c2bfa.tar.xz go-tangerine-b7e8d954ef7f81d5b86e4287d99534c5528c2bfa.tar.zst go-tangerine-b7e8d954ef7f81d5b86e4287d99534c5528c2bfa.zip |
Add TestBcGasPricer, comments and unskip tests
-rw-r--r-- | tests/block_test.go | 7 | ||||
-rw-r--r-- | tests/init.go | 20 |
2 files changed, 19 insertions, 8 deletions
diff --git a/tests/block_test.go b/tests/block_test.go index bdf983786..b014fb52e 100644 --- a/tests/block_test.go +++ b/tests/block_test.go @@ -71,3 +71,10 @@ func TestBcWallet(t *testing.T) { t.Fatal(err) } } + +func TestBcGasPricer(t *testing.T) { + err := RunBlockTest(filepath.Join(blockTestDir, "bcGasPricerTest.json"), BlockSkipTests) + if err != nil { + t.Fatal(err) + } +} diff --git a/tests/init.go b/tests/init.go index 832759f7e..c772ab625 100644 --- a/tests/init.go +++ b/tests/init.go @@ -20,22 +20,26 @@ var ( vmTestDir = filepath.Join(baseDir, "VMTests") BlockSkipTests = []string{ + // Fails in InsertPreState with: computed state root does not + // match genesis block bba25a96 0d8f85c8 Christoph said it will be + // fixed eventually "SimpleTx3", - // TODO: check why these fail + // These tests are not valid, as they are out of scope for RLP and + // the consensus protocol. "BLOCK__RandomByteAtTheEnd", "TRANSCT__RandomByteAtTheEnd", "BLOCK__ZeroByteAtTheEnd", "TRANSCT__ZeroByteAtTheEnd", - - // TODO: why does this fail? should be check in ethash now - "DifficultyIsZero", - - // TODO: why does this fail? - "wrongMixHash", } + + /* Go does not support transaction (account) nonces above 2^64. This + technically breaks consensus but is regarded as "reasonable + engineering constraint" as accounts cannot easily reach such high + nonce values in practice + */ TransSkipTests = []string{"TransactionWithHihghNonce256"} - StateSkipTests = []string{"mload32bitBound_return", "mload32bitBound_return2"} + StateSkipTests = []string{} VmSkipTests = []string{} ) |