Add protected call FATE instruction #210

Merged
zxq9 merged 3 commits from GH-203-protected-calls into master 2020-03-02 20:07:50 +09:00
Showing only changes of commit 719bf26a38 - Show all commits

View File

@ -25,7 +25,11 @@
%% 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!
-ifdef(TEST).
-define(STORE_MAP_THRESHOLD, 0).
-else.
-define(STORE_MAP_THRESHOLD, 100). -define(STORE_MAP_THRESHOLD, 100).
-endif.
-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.