Skip to content

Commit fd38ea4

Browse files
committed
Merge pull request #1099 from obscuren/fork_fix
Fork fix
2 parents 0de13b0 + 6c2f6f5 commit fd38ea4

File tree

9 files changed

+6623
-4626
lines changed

9 files changed

+6623
-4626
lines changed

core/blocks.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ import "github.com/ethereum/go-ethereum/common"
44

55
var badHashes = []common.Hash{
66
common.HexToHash("f269c503aed286caaa0d114d6a5320e70abbc2febe37953207e76a2873f2ba79"),
7+
common.HexToHash("38f5bbbffd74804820ffa4bab0cd540e9de229725afb98c1a7e57936f4a714bc"),
78
}

core/vm/memory.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
package vm
22

3-
import (
4-
"fmt"
5-
6-
"github.com/ethereum/go-ethereum/common"
7-
)
3+
import "fmt"
84

95
type Memory struct {
106
store []byte
@@ -24,7 +20,7 @@ func (m *Memory) Set(offset, size uint64, value []byte) {
2420
// It's possible the offset is greater than 0 and size equals 0. This is because
2521
// the calcMemSize (common.go) could potentially return 0 when size is zero (NO-OP)
2622
if size > 0 {
27-
copy(m.store[offset:offset+size], common.RightPadBytes(value, int(size)))
23+
copy(m.store[offset:offset+size], value)
2824
}
2925
}
3026

tests/block_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ func TestBcInvalidRLPTests(t *testing.T) {
3232
runBlockTestsInFile("files/BlockTests/bcInvalidRLPTest.json", []string{}, t)
3333
}
3434

35-
func TestBcJSAPITests(t *testing.T) {
36-
runBlockTestsInFile("files/BlockTests/bcJS_API_Test.json", []string{}, t)
37-
}
38-
3935
func TestBcRPCAPITests(t *testing.T) {
4036
runBlockTestsInFile("files/BlockTests/bcRPC_API_Test.json", []string{}, t)
4137
}

tests/files/BlockTests/bcCurrentTest.json

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)