lightninglabs / lightninglabs/pool

Add cleared and confirmed timestamps to batches

Open
#170 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
259
Forks
51
PR merge metrics
No merged PRs in 30d

Description

It would be useful to be able to obtain the timestamp that past batches were cleared on the server. This information is currently not possible to obtain. You can get a rough idea by querying a block explorer for the batch txid, seeing what block the tx is in and using the block's timestamp. This value will always be inaccurate since the batch tx is not guaranteed to be in the next block, it can be many blocks later if a low fee rate is used.

It would also useful to know the timestamp that a batch is confirmed on-chain in order to not have to query a block explorer as mentioned above.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are identified in the issue. Start by locating the batch lifecycle and API data returned for cleared batches; determine where server-cleared and on-chain-confirmed times can be obtained, then verify that both timestamps are exposed without requiring a block explorer.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, blockchain
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.