aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/types/common.go')
-rw-r--r--core/types/common.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/core/types/common.go b/core/types/common.go
index ace9c2c4b..ce1090919 100644
--- a/core/types/common.go
+++ b/core/types/common.go
@@ -1,14 +1,16 @@
package types
import (
- "fmt"
"math/big"
"github.com/ethereum/go-ethereum/common"
+ "github.com/ethereum/go-ethereum/state"
+
+ "fmt"
)
type BlockProcessor interface {
- Process(*Block) (*big.Int, error)
+ Process(*Block) (*big.Int, state.Logs, error)
}
const bloomLength = 256
@@ -26,10 +28,7 @@ func (b *Bloom) SetBytes(d []byte) {
panic(fmt.Sprintf("bloom bytes too big %d %d", len(b), len(d)))
}
- // reverse loop
- for i := len(d) - 1; i >= 0; i-- {
- b[bloomLength-len(d)+i] = b[i]
- }
+ copy(b[bloomLength-len(d):], d)
}
func (b Bloom) Big() *big.Int {