Skip to content

Save the latest block height in the database #455

@afilini

Description

@afilini

I'm working on a fix for #413 and #238: it would be useful for both of them to know the "current height" (to know if the coinbase outputs are mature or in the case of #238 to check if we have reached a given minimum number of confirmations).

Since we might not have a Blockchain when running calls like get_balance, we should save the block height in the db every time we sync (and maybe the timestamp as well).

This could also be used to, for instance, only sync automatically if the data are x minutes old or something like that.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions