Skip to content

Commit de9907f

Browse files
committed
chore: disable signer hash check error
1 parent 43ebf32 commit de9907f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

arbnode/dataposter/data_poster.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"context"
1010
"crypto/tls"
1111
"crypto/x509"
12+
"encoding/json"
1213
"errors"
1314
"fmt"
1415
"math"
@@ -46,7 +47,6 @@ import (
4647
"github.com/offchainlabs/nitro/util/rpcclient"
4748
"github.com/offchainlabs/nitro/util/signature"
4849
"github.com/offchainlabs/nitro/util/stopwaiter"
49-
"github.com/redis/go-redis/v9"
5050
"github.com/spf13/pflag"
5151

5252
redisstorage "github.com/offchainlabs/nitro/arbnode/dataposter/redis"
@@ -311,7 +311,10 @@ func externalSigner(ctx context.Context, opts *ExternalSignerCfg) (signerFn, com
311311
return nil, fmt.Errorf("converting transaction arguments into transaction: %w", err)
312312
}
313313
if h := hasher.Hash(gotTx); h != hasher.Hash(signedTx) {
314-
return nil, fmt.Errorf("transaction: %x from external signer differs from request: %x", hasher.Hash(signedTx), h)
314+
//return nil, fmt.Errorf("transaction: %x from external signer differs from request: %x", hasher.Hash(signedTx), h)
315+
unsignedTxOut, _ := json.Marshal(tx)
316+
signedTxOut, _ := json.Marshal(signedTx)
317+
log.Warn("transaction: %x from external signer differs from request: %x, unsignedTx: %x, signedTx: %x", hasher.Hash(signedTx), h, string(unsignedTxOut), string(signedTxOut))
315318
}
316319
return signedTx, nil
317320
}, sender, nil

0 commit comments

Comments
 (0)