Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submitter bump fee mechanism bugs #151

Closed
filippos47 opened this issue Jan 3, 2025 · 1 comment · Fixed by #154 or #160
Closed

Submitter bump fee mechanism bugs #151

filippos47 opened this issue Jan 3, 2025 · 1 comment · Fixed by #154 or #160
Assignees

Comments

@filippos47
Copy link
Member

Version: v0.19.0

Relevant configuration:

    submitter:
      resubmit-fee-multiplier: 1.3
      polling-interval-seconds: 60
      resend-interval-seconds: 1200
    btc:
      estimate-mode: CONSERVATIVE
      tx-fee-min: 1000
      tx-fee-max: 10000
      default-fee: 1000
      target-block-num: 6

Bump fee behaviour: https://mempool.space/signet/tx/511393a0695cab68403acfd36b4461ca106805fd1d49a9f85021468b87a66349

Log from the latest replacemenets:

2025-01-03T01:26:58.285091Z	info	Polling sealed raw checkpoints...	{"module": "submitter"}
2025-01-03T01:26:58.453789Z	debug	Next polling happens in 60 seconds	{"module": "submitter"}
2025-01-03T01:26:58.453821Z	info	A sealed raw checkpoint for epoch 216 is found	{"module": "submitter"}
2025-01-03T01:26:58.453829Z	debug	The checkpoint for epoch 216 was sent more than 1200 seconds ago but not included on BTC	{"module": "submitter", "module": "relayer"}
2025-01-03T01:26:58.453838Z	debug	current minimum relay fee rate is 1012 sat/kb	{"module": "submitter", "module": "relayer"}
2025-01-03T01:26:58.453853Z	debug	the bumped fee: 0.00011768 BTC Satoshis, the required fee: 0.00009209 BTC Satoshis	{"module": "submitter", "module": "relayer"}
2025-01-03T01:26:58.453861Z	debug	Resending the second tx of the checkpoint 216, old fee of the second tx: 0.00009052 BTC Satoshis, txid: edca4553d7642ddafb27fbe161a1f2904220aa00365f84d88812e307232121c5{"module": "submitter", "module": "relayer"}
2025-01-03T01:26:58.563394Z	debug	Sending tx 511393a0695cab68403acfd36b4461ca106805fd1d49a9f85021468b87a66349 to BTC	{"module": "submitter", "module": "relayer"}
2025-01-03T01:26:58.566269Z	debug	Successfully sent tx 511393a0695cab68403acfd36b4461ca106805fd1d49a9f85021468b87a66349 to BTC	{"module": "submitter", "module": "relayer"}
2025-01-03T01:26:58.566327Z	info	Successfully re-sent the second tx of the checkpoint 216, txid: 511393a0695cab68403acfd36b4461ca106805fd1d49a9f85021468b87a66349, bumped fee: 0.00011768 BTC Satoshis	{"module": "submitter", "module": "relayer"}
2025-01-03T01:27:58.285106Z	info	Polling sealed raw checkpoints...	{"module": "submitter"}
2025-01-03T01:27:58.393824Z	debug	Next polling happens in 60 seconds	{"module": "submitter"}
2025-01-03T01:27:58.393847Z	info	A sealed raw checkpoint for epoch 216 is found	{"module": "submitter"}
2025-01-03T01:27:58.394025Z	debug	The checkpoint for epoch 216 was sent more than 1200 seconds ago but not included on BTC	{"module": "submitter", "module": "relayer"}
2025-01-03T01:27:58.394059Z	debug	current minimum relay fee rate is 1012 sat/kb	{"module": "submitter", "module": "relayer"}
2025-01-03T01:27:58.394143Z	debug	the bumped fee: 0.00015298 BTC Satoshis, the required fee: 0.00011925 BTC Satoshis	{"module": "submitter", "module": "relayer"}
2025-01-03T01:27:58.394172Z	debug	Resending the second tx of the checkpoint 216, old fee of the second tx: 0.00011768 BTC Satoshis, txid: 511393a0695cab68403acfd36b4461ca106805fd1d49a9f85021468b87a66349{"module": "submitter", "module": "relayer"}
2025-01-03T01:27:58.423959Z	debug	Transaction 511393a0695cab68403acfd36b4461ca106805fd1d49a9f85021468b87a66349 is already confirmed	{"module": "submitter", "module": "relayer"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x30ae7dd]

goroutine 59 [running]:
github.com/babylonlabs-io/vigilante/submitter/relayer.(*Relayer).MaybeResubmitSecondCheckpointTx(0xc0005821b0, 0xc001c20640?)
	/go/src/github.com/babylonlabs-io/vigilante/submitter/relayer/relayer.go:209 +0x45d
github.com/babylonlabs-io/vigilante/submitter.(*Submitter).processCheckpoints(0xc001317450)
	/go/src/github.com/babylonlabs-io/vigilante/submitter/submitter.go:217 +0x2a5
created by github.com/babylonlabs-io/vigilante/submitter.(*Submitter).Start in goroutine 1
	/go/src/github.com/babylonlabs-io/vigilante/submitter/submitter.go:133 +0x199

Issues:

  • We exceeded the tx-fee-max
  • After the initial fee bump, we bump again the fee every polling-interval-seconds instead of every resend-interval-seconds
  • Service panic
@Lazar955 Lazar955 self-assigned this Jan 6, 2025
Lazar955 added a commit that referenced this issue Jan 8, 2025
Lazar955 added a commit that referenced this issue Jan 8, 2025
@RafilxTenfen
Copy link
Contributor

issue for panic was solved by @Lazar955, we still see the fee bump issue

@RafilxTenfen RafilxTenfen reopened this Jan 8, 2025
Lazar955 added a commit that referenced this issue Jan 8, 2025
We forgot to update the time o the checkpoint.

closes #151 again
Lazar955 added a commit that referenced this issue Jan 9, 2025
We forgot to update the time o the checkpoint.

closes #151 again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants