Skip to content

Commit 67ae060

Browse files
committed
Merge branch 'e24'
2 parents dd6ce95 + 5844df1 commit 67ae060

10 files changed

Lines changed: 82 additions & 985 deletions

File tree

apps/tpnode/src/block.erl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,10 @@ binarize_settings([]) -> [];
512512
binarize_settings([{TxID, Patch}|Rest]) ->
513513
[{TxID, pack_patch(Patch)}|binarize_settings(Rest)].
514514

515-
pack_patch(#{ patch:=P }) ->
516-
tx:pack(tx:construct_tx(#{patches=>P, kind=>patch, ver=>2}));
515+
pack_patch(#{ patch:=_LPatch }=OldTX) ->
516+
tx:pack(OldTX);
517+
% tx:pack(tx:construct_tx(#{patches=>P, kind=>patch, ver=>2}));
518+
517519
pack_patch(#{ kind:=patch, ver:=2, patches:=_, body:=_ }=Patch) ->
518520
tx:pack(Patch);
519521
pack_patch(#{ kind:=patch, ver:=2, patches:=_ }=Patch) ->

apps/tpnode/src/mkblock_genblk.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ run_generate(
263263
catch throw:empty ->
264264
?LOG_INFO("Skip empty block"),
265265
skip;
266-
throw:Other ->
267-
?LOG_INFO("Skip ~p",[Other]),
266+
throw:Other:Stack ->
267+
?LOG_NOTICE("Skip ~p @ ~p",[Other,hd(Stack)]),
268268
error
269269
end.
270270

apps/tpnode/src/mkpatches.erl

Lines changed: 0 additions & 101 deletions
This file was deleted.

0 commit comments

Comments
 (0)