Skip to content

Question: How to Get the height of a Block #60

@jvxis

Description

@jvxis

Hello,
I'd like to include the height of the block in PostgreSQL table blocks.

This is part of the code where blocks are persisted

if (share.foundBlock){
var shareId = result.rows[0].id;
db.query(
'INSERT INTO blocks(share_id, from_group, to_group, block_hash, worker, created_date, modified_date) VALUES($1, $2, $3, $4, $5, $6, $7)',
[shareId, share.job.fromGroup, share.job.toGroup, share.blockHash, share.workerAddress, new Date(), new Date()],

Thanks,
Jvx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions