mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +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]))
|
||||
rows = append(rows, row)
|
||||
|
||||
}
|
||||
|
||||
rows = append(rows, strings.Join(left, " "))
|
||||
rows = append(rows, strings.Join(right, " "))
|
||||
return strings.Join(rows, "\n") + "\n"
|
||||
|
|
@ -413,7 +413,6 @@ func (ha *Hasher) Reset() {
|
|||
func (ha *Hasher) ResetWithLength(l []byte) {
|
||||
ha.Reset()
|
||||
ha.blockLength = l
|
||||
|
||||
}
|
||||
|
||||
// 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.bmt = nil
|
||||
|
||||
}
|
||||
ha.cur = 0
|
||||
ha.segment = nil
|
||||
|
|
|
|||
|
|
@ -200,7 +200,6 @@ func (lendingsign LendingTxSigner) Hash(tx *LendingTransaction) common.Hash {
|
|||
|
||||
// Sender get signer from
|
||||
func (lendingsign LendingTxSigner) Sender(tx *LendingTransaction) (common.Address, error) {
|
||||
|
||||
message := crypto.Keccak256(
|
||||
[]byte("\x19Ethereum Signed Message:\n32"),
|
||||
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
|
||||
// attempt to reconnect the peer.
|
||||
func (srv *Server) AddPeer(node *discover.Node) {
|
||||
|
||||
select {
|
||||
case srv.addstatic <- node:
|
||||
case <-srv.quit:
|
||||
|
|
|
|||
Loading…
Reference in a new issue