aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/CODEOWNERS1
-rw-r--r--core/state/statedb.go4
-rw-r--r--p2p/discv5/net.go2
3 files changed, 4 insertions, 3 deletions
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 9a61d3932..11c4dcedc 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -2,6 +2,7 @@
# Each line is a file pattern followed by one or more owners.
accounts/usbwallet @karalabe
+accounts/abi @gballet
consensus @karalabe
core/ @karalabe @holiman
eth/ @karalabe
diff --git a/core/state/statedb.go b/core/state/statedb.go
index 76e67d839..2230b10ef 100644
--- a/core/state/statedb.go
+++ b/core/state/statedb.go
@@ -468,9 +468,9 @@ func (self *StateDB) createObject(addr common.Address) (newobj, prev *stateObjec
//
// Carrying over the balance ensures that Ether doesn't disappear.
func (self *StateDB) CreateAccount(addr common.Address) {
- new, prev := self.createObject(addr)
+ newObj, prev := self.createObject(addr)
if prev != nil {
- new.setBalance(prev.data.Balance)
+ newObj.setBalance(prev.data.Balance)
}
}
diff --git a/p2p/discv5/net.go b/p2p/discv5/net.go
index cdeb28dd5..55e596755 100644
--- a/p2p/discv5/net.go
+++ b/p2p/discv5/net.go
@@ -800,7 +800,7 @@ func (n *nodeNetGuts) startNextQuery(net *Network) {
func (q *findnodeQuery) start(net *Network) bool {
// Satisfy queries against the local node directly.
if q.remote == net.tab.self {
- closest := net.tab.closest(crypto.Keccak256Hash(q.target[:]), bucketSize)
+ closest := net.tab.closest(q.target, bucketSize)
q.reply <- closest.entries
return true
}