Skip to content

Commit d6ebb30

Browse files
committed
fix(testing): Use reasonable values to configure RAV request in tap-agent for testing on local network
1 parent 059b2f6 commit d6ebb30

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

contrib/indexer-service/config.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,16 @@ max_receipt_value_grt = "0.001"
3232
max_amount_willing_to_lose_grt = 1000
3333

3434
[tap.rav_request]
35-
timestamp_buffer_secs = 1000
35+
# Set a lower timestamp buffer threshold
36+
# for testing purposes
37+
timestamp_buffer_secs = 60
38+
# The trigger value divisor is used to calculate the trigger value for the RAV request.
39+
# using the formula:
40+
# trigger_value = max_amount_willing_to_lose_grt / trigger_value_divisor
41+
# where the default value for max_amount_willing_to_lose_grt is 1000
42+
# the idea to set this for trigger_value to be 0.002
43+
# requiring the sender to send at least 20 receipts of 0.0001 grt
44+
trigger_value_divisor = 500_000
3645

3746
[tap.sender_aggregator_endpoints]
3847
"ACCOUNT0_ADDRESS_PLACEHOLDER" = "http://tap-aggregator:7610"

contrib/tap-agent/config.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,16 @@ serve_escrow_subgraph = false
3232
max_amount_willing_to_lose_grt = 1000
3333

3434
[tap.rav_request]
35-
timestamp_buffer_secs = 1000
35+
# Set a lower timestamp buffer threshold
36+
# for testing purposes
37+
timestamp_buffer_secs = 60
38+
# The trigger value divisor is used to calculate the trigger value for the RAV request.
39+
# using the formula:
40+
# trigger_value = max_amount_willing_to_lose_grt / trigger_value_divisor
41+
# where the default value for max_amount_willing_to_lose_grt is 1000
42+
# the idea to set this for trigger_value to be 0.002
43+
# requiring the sender to send at least 20 receipts of 0.0001 grt
44+
trigger_value_divisor = 500_000
3645

3746
[tap.sender_aggregator_endpoints]
3847
"ACCOUNT0_ADDRESS_PLACEHOLDER" = "http://tap-aggregator:TAP_AGGREGATOR_PORT_PLACEHOLDER"

0 commit comments

Comments
 (0)