Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lev Berman committed Jan 8, 2025
1 parent 2695879 commit f1bef37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/arweave/src/ar_serialize.erl
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ encode_post_2_6_fields(#block{ height = Height, hash_preimage = HashPreimage,
denomination = Denomination, redenomination_height = RedenominationHeight,
double_signing_proof = DoubleSigningProof,
previous_cumulative_diff = PrevCDiff } = B) ->
RewardKey = element(2, B#block.reward_key),
RewardKey = case B#block.reward_key of undefined -> <<>>; {_Type, Key} -> Key end,
case Height >= ar_fork:height_2_6() of
false ->
<<>>;
Expand Down
2 changes: 2 additions & 0 deletions apps/arweave/src/ar_wallet.erl
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ get_or_create_wallet([{_LastModified, F} | Entries], Types) ->
get_or_create_wallet(Entries, Types)
end.

recover_key(Data, <<>>, ?ECDSA_KEY_TYPE) ->
<<>>;
recover_key(Data, Signature, ?ECDSA_KEY_TYPE) ->
{_Pass, PubKey} = secp256k1_nif:ecrecover(Data, Signature),
% Note. if Pass = false, then PubKey will be <<>>
Expand Down

0 comments on commit f1bef37

Please sign in to comment.