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.
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.