mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 01:40:44 +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 {
|
if err == nil {
|
||||||
return sender, nil
|
return sender, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// It was not found in cache, ask the server.
|
||||||
var meta struct {
|
var meta struct {
|
||||||
Hash common.Hash
|
Hash common.Hash
|
||||||
From common.Address
|
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) {
|
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 common.Address{}, errNotCached
|
||||||
}
|
}
|
||||||
return s.addr, nil
|
return s.addr, nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue