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
20
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
6f6ca4dc
Commit
6f6ca4dc
authored
9 months ago
by
Roman Khlopkov
🔜
Browse files
Options
Downloads
Patches
Plain Diff
[*] Emissions autoprocessing fix
parent
7fac874f
No related branches found
No related tags found
No related merge requests found
Pipeline
#41120
passed with stage
in 9 minutes and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/net/dap_chain_node.c
+1
-0
1 addition, 0 deletions
modules/net/dap_chain_node.c
modules/net/include/dap_chain_ledger.h
+6
-4
6 additions, 4 deletions
modules/net/include/dap_chain_ledger.h
with
7 additions
and
4 deletions
modules/net/dap_chain_node.c
+
1
−
0
View file @
6f6ca4dc
...
...
@@ -271,6 +271,7 @@ bool dap_chain_node_mempool_process(dap_chain_t *a_chain, dap_chain_datum_t *a_d
if
(
l_verify_datum
!=
0
&&
l_verify_datum
!=
DAP_CHAIN_CS_VERIFY_CODE_TX_NO_PREVIOUS
&&
l_verify_datum
!=
DAP_CHAIN_CS_VERIFY_CODE_TX_NO_EMISSION
&&
l_verify_datum
!=
DAP_CHAIN_CS_VERIFY_CODE_NOT_ENOUGH_SIGNS
&&
l_verify_datum
!=
DAP_CHAIN_CS_VERIFY_CODE_NO_DECREE
)
return
true
;
if
(
!
l_verify_datum
...
...
This diff is collapsed.
Click to expand it.
modules/net/include/dap_chain_ledger.h
+
6
−
4
View file @
6f6ca4dc
...
...
@@ -177,11 +177,13 @@ typedef bool (*dap_ledger_tag_check_callback_t)(dap_ledger_t *a_ledger, dap_chai
#define DAP_LEDGER_CACHE_ENABLED 0x0200
// Error code for no previous transaction (for stay in mempool)
#define DAP_CHAIN_CS_VERIFY_CODE_TX_NO_PREVIOUS DAP_LEDGER_TX_CHECK_PREV_TX_NOT_FOUND
// Error code for no emission for a transaction (for stay in mempoold)
#define DAP_CHAIN_CS_VERIFY_CODE_TX_NO_EMISSION DAP_LEDGER_TX_CHECK_EMISSION_NOT_FOUND
#define DAP_CHAIN_CS_VERIFY_CODE_TX_NO_PREVIOUS DAP_LEDGER_TX_CHECK_PREV_TX_NOT_FOUND
// Error code for no emission for a transaction (for stay in mempool)
#define DAP_CHAIN_CS_VERIFY_CODE_TX_NO_EMISSION DAP_LEDGER_TX_CHECK_EMISSION_NOT_FOUND
// Error code for not enough valid emission signs (for stay in mempool)
#define DAP_CHAIN_CS_VERIFY_CODE_NOT_ENOUGH_SIGNS DAP_LEDGER_EMISSION_ADD_CHECK_NOT_ENOUGH_VALID_SIGNS
// Error code for no decree for anchor (for stay in mempool)
#define DAP_CHAIN_CS_VERIFY_CODE_NO_DECREE -1113
#define DAP_CHAIN_CS_VERIFY_CODE_NO_DECREE
-1113
#define DAP_LEDGER_TOKENS_STR "tokens"
#define DAP_LEDGER_EMISSIONS_STR "emissions"
...
...
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