Skip to content

Extend get_block_header and get_block_header_batch APIs to return witness signatures#2641

Merged
abitmore merged 3 commits into
developfrom
pr-2588-signed-block-header-api
Sep 16, 2022
Merged

Extend get_block_header and get_block_header_batch APIs to return witness signatures#2641
abitmore merged 3 commits into
developfrom
pr-2588-signed-block-header-api

Conversation

@abitmore

@abitmore abitmore commented Sep 16, 2022

Copy link
Copy Markdown
Member

PR for #2588.

Update: this PR is superseded by #2652.

Note: the `witness_signature` field is a bit long, so the return size has increased.

Before:

{"previous":"00000004659ea6a0ae8928db63338ca9b16e4a70","timestamp":"2015-05-15T14:27:20","witness":"1.6.6","transaction_merkle_root":"3d1a3de0a1de97f7b300846e1f2ec5b0c84179e2","extensions":[]}

After:

{"previous":"00000004659ea6a0ae8928db63338ca9b16e4a70","timestamp":"2015-05-15T14:27:20","witness":"1.6.6","transaction_merkle_root":"3d1a3de0a1de97f7b300846e1f2ec5b0c84179e2","extensions":[],"witness_signature":"204e4172a77f89749e2a6a00eaf069c88dfb0ca2f985ba86c8f0b5a7e39d41b82953defea5805f510b83b40ef7f8ee11ad9f43a8a51ea72520a600bebd44a23534"}

Including 2 database APIs:
- get_block_header
- get_block_header_batch
@abitmore abitmore added this to the 6.1.0 - Feature Release milestone Sep 16, 2022
@abitmore abitmore linked an issue Sep 16, 2022 that may be closed by this pull request
17 tasks
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a new database API to get signed block header

1 participant