New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test flux aggregator default oracle gas limits #2965
Conversation
I see that you haven't updated any CHANGELOG files. Would it make sense to do so? |
// xs[i] = 0 | ||
// } | ||
|
||
// for (let l = len - 1; l > 0; l--) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// for (let l = len - 1; l > 0; l--) { | |
// for (let l = len; l > 0; l--) { |
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors. :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also suggest doing an assert.deepEqual
against a golden output, e.g. for len == 16
, you should get [2, 4, 6, 8, 10, 12, 14, 16, 1, 9, 5, 11, 3, 13, 7, 15]
d7375cd
to
0f3c703
Compare
@@ -81,7 +81,7 @@ contract FluxAggregator is AggregatorInterface, Owned { | |||
* funds without the owner's intervention.) | |||
*/ | |||
uint256 constant private RESERVE_ROUNDS = 2; | |||
uint256 constant private MAX_ORACLE_COUNT = 42; | |||
uint256 constant private MAX_ORACLE_COUNT = 77; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow we're really going for broke here ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was the most we could fit in under 400k.
await aggregator | ||
.connect(personas.Carol) | ||
.addOracles([fakeAddress], [fakeAddress], minMax, minMax, rrDelay) | ||
function adverserialQuickselectList(len: number): number[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is cool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shoutout to @kaleofduty.
0f3c703
to
42072cd
Compare
No description provided.