Skip to content

Commit d18a43f

Browse files
authored
Merge pull request #900 from CortexFoundation/dev
cmd/utils: fix txlookuplimit for archive node
2 parents 9a469f1 + 2531a0c commit d18a43f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cmd/utils/flags.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,10 @@ func SetCortexConfig(ctx *cli.Context, stack *node.Node, cfg *ctxc.Config) {
13651365
//CheckExclusive(ctx, DeveloperFlag, ExternalSignerFlag) // Can't use both ephemeral unlocked and external signer
13661366
CheckExclusive(ctx, GCModeFlag, "archive", TxLookupLimitFlag)
13671367

1368+
if ctx.GlobalString(GCModeFlag.Name) == "archive" && ctx.GlobalUint64(TxLookupLimitFlag.Name) != 0 {
1369+
ctx.GlobalSet(TxLookupLimitFlag.Name, "0")
1370+
log.Warn("Disable transaction unindexing for archive node")
1371+
}
13681372
var ks *keystore.KeyStore
13691373
if keystores := stack.AccountManager().Backends(keystore.KeyStoreType); len(keystores) > 0 {
13701374
ks = keystores[0].(*keystore.KeyStore)

internal/ctxcapi/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ func submitTransaction(ctx context.Context, b Backend, tx *types.Transaction) (c
13111311
}
13121312
if !b.UnprotectedAllowed() && !tx.Protected() {
13131313
// Ensure only eip155 signed transactions are submitted if EIP155Required is set.
1314-
return common.Hash{}, errors.New("only replay-protected (EIP-155) transactions allowed over RPC")
1314+
//return common.Hash{}, errors.New("only replay-protected (EIP-155) transactions allowed over RPC")
13151315
}
13161316
if err := b.SendTx(ctx, tx); err != nil {
13171317
return common.Hash{}, err

0 commit comments

Comments
 (0)