Skip to content
Snippets Groups Projects
Commit 13afbcb1 authored by Aleksei Voronin's avatar Aleksei Voronin
Browse files

[*] fixed emission in POS

parent 2c0992a2
No related branches found
No related tags found
1 merge request!55Абсолютно ничего серьезного
...@@ -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++){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment