all: fix white space (#1529)

Co-authored-by: wit <wit765765346@gmail>
This commit is contained in:
wit liu 2025-09-21 19:01:34 +08:00 committed by GitHub
parent cb077e7ea4
commit a663ea311c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 5 deletions

View file

@ -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

View file

@ -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(),

View file

@ -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: