Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
16
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
b7e133d7
Commit
b7e133d7
authored
7 years ago
by
Dmitriy Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[+] Different versions for tree roots hashs
parent
3a23e1c6
No related branches found
No related tags found
1 merge request
!24
Support 3689
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dap_chain_block_roots.h
+14
-8
14 additions, 8 deletions
dap_chain_block_roots.h
with
14 additions
and
8 deletions
dap_chain_block_roots.h
+
14
−
8
View file @
b7e133d7
...
...
@@ -5,17 +5,23 @@
#include
"dap_chain_common.h"
/**
* @struct dap_chain_block_roots
* @brief Hash tree roots for block
* @struct dap_chain_block_roots
_v1
* @brief Hash tree roots for block
, version 1
*/
typedef
struct
dap_chain_block_roots
{
typedef
struct
dap_chain_block_roots_v1
{
dap_chain_hash_t
main
;
}
DAP_ALIGN_PACKED
dap_chain_block_roots_v1_t
;
/**
* @struct dap_chain_block_roots_v2
* @brief Hash tree roots for block, version 2
*/
typedef
struct
dap_chain_block_roots_v2
{
dap_chain_hash_t
main
;
dap_chain_hash_t
txs
;
dap_chain_hash_t
txs_pending
;
dap_chain_hash_t
txs_requests
;
dap_chain_hash_t
contract_code
;
dap_chain_hash_t
contract_data
;
}
DAP_ALIGN_PACKED
dap_chain_block_roots_t
;
}
DAP_ALIGN_PACKED
dap_chain_block_roots_v2_t
;
typedef
dap_chain_block_roots_v2_t
dap_chain_block_roots_t
;
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment