Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

reject poc requests txns if chainvar set #1339

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andymck
Copy link
Contributor

@andymck andymck commented May 11, 2022

Once val challengers are enabled, we dont want to be accepting poc request txns from hotspots, they just create noise.

@andymck andymck force-pushed the andymck/reject-poc-requests branch from 0e3b006 to 81d8c90 Compare May 11, 2022 18:28
@andymck andymck requested review from Vagabond and evanmcc and removed request for Vagabond May 11, 2022 18:31
Comment on lines +1040 to +1042
case Value of
true -> ok;
false -> ok;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
case Value of
true -> ok;
false -> ok;
case Value of
Bool when is_boolean(Bool) -> ok;

Copy link
Contributor

Choose a reason for hiding this comment

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

personally, I like

validate_var(?poc_reject_requests, Value) when is_boolean(Value) -> ok;
validate_var(?poc_reject_requests, Value) -> throw({error, {poc_reject_requests, Value}}).

but I know that multi-head style is controversial

@Vagabond
Copy link
Contributor

We're going to hold this for 1.11.x and do the filtering in the sidecar until then see helium/miner#1600

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants