BlockPo / BlockPo-to-Tradelayer

Incubation Repo for the TradeLayer protocol, 0.2.0
http://www.tradelayer.org
Other
8 stars 8 forks source link

function called from right place, and some nullptr optimizations #270

Closed santos177 closed 4 years ago

santos177 commented 4 years ago

I've found calling settlement and expiration code acting in mastercore_handler_tx. Which means, this code is executed each new transaction ! . The solution was just put the code into mastercore_handler_block_begin. Now those functions are called just 1 time each block. Other changes was made for NULL pointers. This changes passed all functional tests.