diff --git a/src/handlers/blockchain_sync_handler.erl b/src/handlers/blockchain_sync_handler.erl index 610e3053a4..61f1b56072 100644 --- a/src/handlers/blockchain_sync_handler.erl +++ b/src/handlers/blockchain_sync_handler.erl @@ -115,6 +115,7 @@ handle_data(client, Data0, #state{blockchain=Chain, path=Path}=State) -> ok -> {noreply, State, blockchain_sync_handler_pb:encode_msg(#blockchain_sync_req_pb{msg={response, true}})}; _Error -> + lager:info("Error adding blocks ~p", [_Error]), %% TODO: maybe dial for sync again? {stop, normal, State, blockchain_sync_handler_pb:encode_msg(#blockchain_sync_req_pb{msg={response, false}})} end; diff --git a/src/transactions/blockchain_txn.erl b/src/transactions/blockchain_txn.erl index a2e7421a2d..f1563a59f5 100644 --- a/src/transactions/blockchain_txn.erl +++ b/src/transactions/blockchain_txn.erl @@ -109,8 +109,9 @@ {blockchain_txn_payment_v2, 19}, {blockchain_txn_state_channel_open_v1, 20}, {blockchain_txn_update_gateway_oui_v1, 21}, - {blockchain_txn_state_channel_close_v1, 22}, - {blockchain_txn_transfer_hotspot_v1, 23} + {blockchain_txn_price_oracle_v1, 22}, + {blockchain_txn_state_channel_close_v1, 23}, + {blockchain_txn_transfer_hotspot_v1, 24} ]). block_delay() -> @@ -636,7 +637,7 @@ type_order(Txn) -> Type = type(Txn), case lists:keyfind(Type, 1, ?ORDER) of {Type, Index} -> Index; - false -> erlang:length(?ORDER) + false -> erlang:length(?ORDER) + 1 end. %%--------------------------------------------------------------------