Add function to get best timestamp from a chronik Tx_InNode object. Use timeFirstSeen if available. If unavailable and the tx is in a block, use block timestamp. If the tx is unconfirmed and also has timeFirstSeen of 0 (unlikely edge case implying chronik just indexed and the tx is not confirmed), return -1 to denote that the timestamp is unknown.
Details
Details
- Reviewers
emack - Group Reviewers
Restricted Project - Commits
- rABC6b7ba071d69a: [token-server] Add function getTxTimestamp to get best timestamp from a chronik…
npm test
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable