mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 18:30:45 +00:00
parent
cb077e7ea4
commit
a663ea311c
3 changed files with 1 additions and 5 deletions
|
|
@ -234,8 +234,8 @@ func (t *Tree) Draw(hash []byte, d int) string {
|
||||||
}
|
}
|
||||||
row := fmt.Sprintf("%v: %v", len(hashes)-i-1, strings.Join(hash, del[:delsize]))
|
row := fmt.Sprintf("%v: %v", len(hashes)-i-1, strings.Join(hash, del[:delsize]))
|
||||||
rows = append(rows, row)
|
rows = append(rows, row)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rows = append(rows, strings.Join(left, " "))
|
rows = append(rows, strings.Join(left, " "))
|
||||||
rows = append(rows, strings.Join(right, " "))
|
rows = append(rows, strings.Join(right, " "))
|
||||||
return strings.Join(rows, "\n") + "\n"
|
return strings.Join(rows, "\n") + "\n"
|
||||||
|
|
@ -413,7 +413,6 @@ func (ha *Hasher) Reset() {
|
||||||
func (ha *Hasher) ResetWithLength(l []byte) {
|
func (ha *Hasher) ResetWithLength(l []byte) {
|
||||||
ha.Reset()
|
ha.Reset()
|
||||||
ha.blockLength = l
|
ha.blockLength = l
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Release gives back the Tree to the pool whereby it unlocks
|
// Release gives back the Tree to the pool whereby it unlocks
|
||||||
|
|
@ -429,7 +428,6 @@ func (ha *Hasher) releaseTree() {
|
||||||
}
|
}
|
||||||
ha.pool.Release(ha.bmt)
|
ha.pool.Release(ha.bmt)
|
||||||
ha.bmt = nil
|
ha.bmt = nil
|
||||||
|
|
||||||
}
|
}
|
||||||
ha.cur = 0
|
ha.cur = 0
|
||||||
ha.segment = nil
|
ha.segment = nil
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,6 @@ func (lendingsign LendingTxSigner) Hash(tx *LendingTransaction) common.Hash {
|
||||||
|
|
||||||
// Sender get signer from
|
// Sender get signer from
|
||||||
func (lendingsign LendingTxSigner) Sender(tx *LendingTransaction) (common.Address, error) {
|
func (lendingsign LendingTxSigner) Sender(tx *LendingTransaction) (common.Address, error) {
|
||||||
|
|
||||||
message := crypto.Keccak256(
|
message := crypto.Keccak256(
|
||||||
[]byte("\x19Ethereum Signed Message:\n32"),
|
[]byte("\x19Ethereum Signed Message:\n32"),
|
||||||
lendingsign.Hash(tx).Bytes(),
|
lendingsign.Hash(tx).Bytes(),
|
||||||
|
|
|
||||||
|
|
@ -307,7 +307,6 @@ func (srv *Server) PeerCount() int {
|
||||||
// server is shut down. If the connection fails for any reason, the server will
|
// server is shut down. If the connection fails for any reason, the server will
|
||||||
// attempt to reconnect the peer.
|
// attempt to reconnect the peer.
|
||||||
func (srv *Server) AddPeer(node *discover.Node) {
|
func (srv *Server) AddPeer(node *discover.Node) {
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case srv.addstatic <- node:
|
case srv.addstatic <- node:
|
||||||
case <-srv.quit:
|
case <-srv.quit:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue