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
13afbcb1
Commit
13afbcb1
authored
4 years ago
by
Aleksei Voronin
Browse files
Options
Downloads
Patches
Plain Diff
[*] fixed emission in POS
parent
2c0992a2
No related branches found
Branches containing commit
No related tags found
1 merge request
!55
Абсолютно ничего серьезного
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/consensus/dag-pos/dap_chain_cs_dag_pos.c
+1
-2
1 addition, 2 deletions
modules/consensus/dag-pos/dap_chain_cs_dag_pos.c
with
1 addition
and
2 deletions
modules/consensus/dag-pos/dap_chain_cs_dag_pos.c
+
1
−
2
View file @
13afbcb1
...
@@ -239,7 +239,6 @@ static int s_callback_event_verify(dap_chain_cs_dag_t * a_dag, dap_chain_cs_dag_
...
@@ -239,7 +239,6 @@ static int s_callback_event_verify(dap_chain_cs_dag_t * a_dag, dap_chain_cs_dag_
dap_chain_addr_fill
(
&
l_addr
,
l_key
,
&
a_dag
->
chain
->
net_id
);
dap_chain_addr_fill
(
&
l_addr
,
l_key
,
&
a_dag
->
chain
->
net_id
);
dap_enc_key_delete
(
l_key
);
// TODO cache all this operations to prevent useless memory copy ops
dap_enc_key_delete
(
l_key
);
// TODO cache all this operations to prevent useless memory copy ops
/*
dap_chain_datum_t
*
l_datum
=
dap_chain_cs_dag_event_get_datum
(
a_dag_event
);
dap_chain_datum_t
*
l_datum
=
dap_chain_cs_dag_event_get_datum
(
a_dag_event
);
// transaction include emission?
// transaction include emission?
bool
l_is_emit
=
false
;
bool
l_is_emit
=
false
;
...
@@ -254,7 +253,7 @@ static int s_callback_event_verify(dap_chain_cs_dag_t * a_dag, dap_chain_cs_dag_
...
@@ -254,7 +253,7 @@ static int s_callback_event_verify(dap_chain_cs_dag_t * a_dag, dap_chain_cs_dag_
}
}
// if emission then the wallet can be with zero balance
// if emission then the wallet can be with zero balance
if
(
l_is_emit
)
if
(
l_is_emit
)
return 0;
*/
return
0
;
bool
l_is_enough_balance
=
false
;
bool
l_is_enough_balance
=
false
;
for
(
size_t
i
=
0
;
i
<
l_pos_pvt
->
tokens_hold_size
;
i
++
){
for
(
size_t
i
=
0
;
i
<
l_pos_pvt
->
tokens_hold_size
;
i
++
){
...
...
This diff is collapsed.
Click to expand it.
Aleksei Voronin
@aleksei.voronin
mentioned in commit
5c3a6bb8
·
4 years ago
mentioned in commit
5c3a6bb8
mentioned in commit 5c3a6bb8c59af6b5f0c0a9d333bfd41e6469c9e3
Toggle commit list
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