mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
parent
992e931623
commit
b96310ebe7
2 changed files with 3 additions and 1 deletions
|
|
@ -246,6 +246,8 @@ func (ec *Client) TransactionSender(ctx context.Context, tx *types.Transaction,
|
|||
if err == nil {
|
||||
return sender, nil
|
||||
}
|
||||
|
||||
// It was not found in cache, ask the server.
|
||||
var meta struct {
|
||||
Hash common.Hash
|
||||
From common.Address
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func (s *senderFromServer) Equal(other types.Signer) bool {
|
|||
}
|
||||
|
||||
func (s *senderFromServer) Sender(tx *types.Transaction) (common.Address, error) {
|
||||
if s.blockhash == (common.Hash{}) {
|
||||
if s.addr == (common.Address{}) {
|
||||
return common.Address{}, errNotCached
|
||||
}
|
||||
return s.addr, nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue