Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Reduce size of assert loc over ebus #163

Closed
wants to merge 1 commit into from
Closed
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: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

{deps, [
{blockchain, {git, "[email protected]:helium/blockchain-core.git",
{branch, "master"}}},
{branch, "macpie/assertloc"}}},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will update this once core is merged

{hbbft, {git, "https://github.com/helium/erlang-hbbft.git", {branch, "master"}}},
{dkg, {git, "https://github.com/helium/erlang-dkg.git", {branch, "master"}}},
{ecc508, {git, "https://github.com/helium/ecc508.git", {branch, "master"}}},
Expand Down
2 changes: 1 addition & 1 deletion rebar.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{<<"base32">>,{pkg,<<"base32">>,<<"0.1.0">>},3},
{<<"blockchain">>,
{git,"[email protected]:helium/blockchain-core.git",
{ref,"b0bd97938ae06fe8915c207cc5352f6bbae1d5f6"}},
{ref,"7664d2e03a150dd4e4a6acb14c140eea8f1c5bae"}},
0},
{<<"clique">>,
{git,"https://github.com/helium/clique.git",
Expand Down
4 changes: 3 additions & 1 deletion src/miner.erl
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,9 @@ handle_call({assert_loc_txn, H3Index, Owner, Payer, Nonce, StakingFee, Fee}, _Fr
PubKeyBin = libp2p_crypto:pubkey_to_bin(PubKey),
Txn = blockchain_txn_assert_location_v1:new(PubKeyBin, Owner, Payer, H3Index, Nonce, StakingFee, Fee),
SignedTxn = blockchain_txn_assert_location_v1:sign_request(Txn, SigFun),
{reply, {ok, blockchain_txn:serialize(SignedTxn)}, State};
GatewaySign = blockchain_txn_assert_location_v1:gateway_signature(SignedTxn),
ReducedTxn = blockchain_txn_assert_location_v1:new(PubKeyBin, GatewaySign, H3Index),
{reply, {ok, blockchain_txn:serialize(ReducedTxn)}, State};
handle_call(consensus_group, _From, State) ->
{reply, State#state.consensus_group, State};
handle_call({handoff_consensus, NewConsensusGroup, ElectionHeight}, _From,
Expand Down