Skip to content

Commit efda72e

Browse files
committed
graph: Switch to turn off deterministic store errors
1 parent 284b4ce commit efda72e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

graph/src/env/mappings.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ pub struct EnvVarsMapping {
6262
/// eth calls before running triggers; instead eth calls happen when
6363
/// mappings call `ethereum.call`. Off by default.
6464
pub disable_declared_calls: bool,
65+
66+
/// Set by the flag `GRAPH_STORE_ERRORS_ARE_NON_DETERMINISTIC`. Off by
67+
/// default. Setting this to `true` will revert to the old behavior of
68+
/// treating all store errors as nondeterministic. This is a temporary
69+
/// measure and can be removed after 2025-07-01, once we are sure the
70+
/// new behavior works as intended.
71+
pub store_errors_are_nondeterministic: bool,
6572
}
6673

6774
// This does not print any values avoid accidentally leaking any sensitive env vars
@@ -89,6 +96,7 @@ impl From<InnerMappingHandlers> for EnvVarsMapping {
8996
ipfs_request_limit: x.ipfs_request_limit,
9097
allow_non_deterministic_ipfs: x.allow_non_deterministic_ipfs.0,
9198
disable_declared_calls: x.disable_declared_calls.0,
99+
store_errors_are_nondeterministic: x.store_errors_are_nondeterministic.0,
92100
}
93101
}
94102
}
@@ -123,4 +131,6 @@ pub struct InnerMappingHandlers {
123131
allow_non_deterministic_ipfs: EnvVarBoolean,
124132
#[envconfig(from = "GRAPH_DISABLE_DECLARED_CALLS", default = "false")]
125133
disable_declared_calls: EnvVarBoolean,
134+
#[envconfig(from = "GRAPH_STORE_ERRORS_ARE_NON_DETERMINISTIC", default = "false")]
135+
store_errors_are_nondeterministic: EnvVarBoolean,
126136
}

0 commit comments

Comments
 (0)