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
17
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
Compare revisions
6f94f7b4ea9506f30c49692757d89c8b9719b41e to b6ec5d920be946759f94e5aa12aa2dade036979c
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
cellframe/cellframe-sdk
Select target project
No results found
b6ec5d920be946759f94e5aa12aa2dade036979c
Select Git revision
Swap
Target
cellframe/cellframe-sdk
Select target project
cellframe/cellframe-sdk
MIKA83/cellframe-sdk
2 results
6f94f7b4ea9506f30c49692757d89c8b9719b41e
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Small bug fixed"
· 31ed91d3
Roman Khlopkov
authored
4 years ago
31ed91d3
[*] Ledger sum per token corrected
· b6ec5d92
Roman Khlopkov
authored
4 years ago
b6ec5d92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/chain/dap_chain_ledger.c
+2
-2
2 additions, 2 deletions
modules/chain/dap_chain_ledger.c
with
2 additions
and
2 deletions
modules/chain/dap_chain_ledger.c
View file @
b6ec5d92
...
...
@@ -816,7 +816,7 @@ int dap_chain_ledger_tx_cache_check(dap_ledger_t *a_ledger, dap_chain_datum_tx_t
dap_list_t
*
l_list_tmp
=
dap_chain_datum_tx_items_get
((
dap_chain_datum_tx_t
*
)
a_tx
,
TX_ITEM_TYPE_OUT_COND
,
NULL
);
// accumalate value from all 'out' & 'out_cond' transactions
if
(
l_list_tmp
)
{
l_list_out
=
dap_list_append
(
l_list_out
,
l_list_tmp
);
l_list_out
=
dap_list_append
(
l_list_out
,
l_list_tmp
->
data
);
}
for
(
l_list_tmp
=
l_list_out
;
l_list_tmp
;
l_list_tmp
=
dap_list_next
(
l_list_tmp
))
{
if
(
*
(
uint8_t
*
)
l_list_tmp
->
data
==
TX_ITEM_TYPE_OUT
)
{
...
...
@@ -860,7 +860,7 @@ int dap_chain_ledger_tx_cache_check(dap_ledger_t *a_ledger, dap_chain_datum_tx_t
HASH_FIND_STR
(
l_values_from_cur_tx
,
l_value_cur
->
token_ticker
,
l_res
);
if
(
!
l_res
||
l_res
->
sum
!=
l_value_cur
->
sum
)
{
log_it
(
L_ERROR
,
"Sum of values in out items of current tx (%llu) is not equal outs from previous tx (%llu) for token %s"
,
l_
values_from_cur_tx
,
l_values_from_prev_tx
,
l_value_cur
->
token_ticker
);
l_
res
?
l_res
->
sum
:
0
,
l_value_cur
->
sum
,
l_value_cur
->
token_ticker
);
l_err_num
=
-
12
;
break
;
}
...
...
This diff is collapsed.
Click to expand it.