-
Notifications
You must be signed in to change notification settings - Fork 5
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
SEC-526 #118
base: dev
Are you sure you want to change the base?
SEC-526 #118
Conversation
dfa3dde
to
4afa2ae
Compare
6dbe5e2
to
121a685
Compare
fix: add extractKeyFromTx function
chore : formatting fixes fix : add correct shardus-net branch
121a685
to
3813532
Compare
0642197
to
3813532
Compare
…unction to handle legacy and access list transactions
43124cc
to
b1e3a03
Compare
console.log('Execution Shard Key in receipt does not match the calculated key from transaction data.') | ||
} | ||
if (nestedCountersInstance) nestedCountersInstance.countEvent('receipt', 'executionShardKey mismatch') | ||
executionShardKey = extractedKey |
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 wonder if fallback should be to the key which we received in receipt. Just in case our extraction logic has some flaws. We can discuss with design team.
return response.accounts | ||
} | ||
|
||
throw new Error(`Secure account data not found on node ${node.ip}`) |
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.
can we add some logs here?if there is any error in response from /secure_accounts api, we lose the error message.
@@ -0,0 +1,32 @@ | |||
import * as fs from 'fs' |
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.
can this be written as unit test? what's the purpose of the file?
Also, filePath
is hardcoded
Linear : https://linear.app/shm/issue/SEC-526/archiver-is-not-checking-list-of-accounts-belonging-to-actual-accounts