Skip to content
This repository was archived by the owner on Jun 12, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/miner.erl
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ version() ->
%% ------------------------------------------------------------------

init(_Args) ->
%% flag this process as doing speculative absorbs in select_transactions
put('__speculative_absorb', true),
Mode = application:get_env(miner, mode),
lager:info("STARTING UP MINER with mode ~p", [Mode]),
ok = blockchain_event:add_handler(self()),
Expand Down
2 changes: 2 additions & 0 deletions src/miner_hbbft_sidecar.erl
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ handle_txn(update = _RequestType, Txn) ->
init([]) ->
init(#state{});
init(State) ->
%% flag this process as doing speculative absorbs
put('__speculative_absorb', true),
case blockchain_worker:blockchain() of
undefined ->
erlang:send_after(500, self(), chain_check),
Expand Down