IPC filenames are inconsistent when --ipcpath
and --instance
are used together
#13798
Open
1 task done
--ipcpath
and --instance
are used together
#13798
Describe the bug
If reth or op-reth is launched with an IPC path and an instance value other than the default, the instance number is appended to the IPC filename.
e.g. when specifying
--ipcpath=/ipc/op-reth.ipc
and--instance=2
, the actual IPC filename will be/ipc/op-reth.ipc-2
which is unexpected and not documented behavior of--instance
.The path mangling behavior is reasonable, but inconsistent. It could be improved by appending the "-1" when
--instance
is provided with the default value of 1. In this way, IPC filenames would be predictably named without needed to treat instance 1 in a special way.Alternatively, the IPC filenames could be used without any mangling applied, since nodes should use their own data directories and filename collision is unlikely.
I presume that nodes launched without specifying
--instance
should continue to behave as normal.Steps to reproduce
Launch with the options described above.
Node logs
Platform(s)
Linux (x86)
Container Type
Other
What version/commit are you on?
reth-optimism-cli Version: 1.1.5
Commit SHA: 3212af2
Build Timestamp: 2025-01-07T10:07:51.565185205Z
Build Features: asm_keccak,jemalloc,optimism
Build Profile: release
reth Version: 1.1.5
Commit SHA: 3212af2
Build Timestamp: 2025-01-07T09:32:44.053190141Z
Build Features: asm_keccak,jemalloc
Build Profile: release
What database version are you on?
Current database version: 2
Local database version: 2
Which chain / network are you on?
reth
mainnet
op-reth
base
What type of node are you running?
Archive (default)
What prune config do you use, if any?
n/a
If you've built Reth from source, provide the full command you used
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: