From 929fafece9ed4c015637c7631ec600a7b6a93edc Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Mon, 19 Jul 2021 21:49:10 -0500 Subject: [PATCH] Init force_write_strade to 1 because it is used in modulus to avoid divide by 0 --- libraries/rodeos/include/b1/rodeos/rodeos.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/rodeos/include/b1/rodeos/rodeos.hpp b/libraries/rodeos/include/b1/rodeos/rodeos.hpp index cbbf6baf59c..2d521b6cb90 100644 --- a/libraries/rodeos/include/b1/rodeos/rodeos.hpp +++ b/libraries/rodeos/include/b1/rodeos/rodeos.hpp @@ -51,7 +51,7 @@ struct rodeos_db_snapshot { eosio::checksum256 irreversible_id = {}; uint32_t first = 0; std::optional writing_block = {}; - uint32_t force_write_stride = 0; + uint32_t force_write_stride = 1; // used in modulus so init to 1 for eosio-tester rodeos_db_snapshot(std::shared_ptr partition, bool persistent, bool undo_stack_disabled = false);