Recalibrate the store map threshold

Now that we charge gas for store writes the math is changed.
This commit is contained in:
Ulf Norell 2019-10-01 10:52:54 +02:00
parent 04878c5ed9
commit 48cfbd03b0

View File

@ -25,7 +25,7 @@
%% Size in bytes of serialization of a map for which we turn it into a store %% Size in bytes of serialization of a map for which we turn it into a store
%% map. It's not worth turning small maps into store maps. %% map. It's not worth turning small maps into store maps.
%% Under consensus! %% Under consensus!
-define(STORE_MAP_THRESHOLD, 500). -define(STORE_MAP_THRESHOLD, 100).
-type fate_value() :: aeb_fate_data:fate_type(). -type fate_value() :: aeb_fate_data:fate_type().
-type fate_value_or_tombstone() :: fate_value() | ?FATE_MAP_TOMBSTONE. -type fate_value_or_tombstone() :: fate_value() | ?FATE_MAP_TOMBSTONE.