We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
There is no block height information in the job. You can obtain the block height in the following two ways:
parentHash
job.headerBlob
share.blockHash
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: