-
Notifications
You must be signed in to change notification settings - Fork 17
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
Ticket 828/add ima api #1556
Ticket 828/add ima api #1556
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1556 +/- ##
===========================================
+ Coverage 85.79% 90.16% +4.37%
===========================================
Files 26 26
Lines 1464 1322 -142
Branches 401 348 -53
===========================================
- Hits 1256 1192 -64
Misses 33 33
+ Partials 175 97 -78 |
@@ -929,6 +929,8 @@ export function mergeSChainsArrayFromTo( arrSrc, arrDst, arrNew, arrOld, opts ) | |||
} | |||
|
|||
let gArrSChainsCached = []; | |||
const gArrCacheHistory = []; | |||
let nMaxSizeOfArrCacheHistory = 20; | |||
|
|||
export async function cacheSChains( strChainNameConnectedTo, addressFrom, opts ) { |
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.
Propose to remove addressFrom parameter from cacheSchains - it is unnecessary parameter
New features:
skale_getCachedSNB
,skale_historySNB
,skale_refreshSNB
JSON RPC APIsskale_imaVerifyAndSign
now prints node IP in logsTesting example, get currently last cached S-Chains connected to this S-Chain and saved in SNB:
curl -X POST --data '{ "jsonrpc": "2.0", "id": 1, "method": "skale_getCachedSNB", "params": {} }' -H 'Content-type:application/json; charset=utf-8' http://127.0.0.1:2171
Testing example, get recent SNB history:
curl -X POST --data '{ "jsonrpc": "2.0", "id": 1, "method": "skale_historySNB", "params": {} }' -H 'Content-type:application/json; charset=utf-8' http://127.0.0.1:2171
Testing example, make SNB refresh from geth node inside running IMA Agent:
curl -X POST --data '{ "jsonrpc": "2.0", "id": 1, "method": "skale_refreshSNB", "params": {} }' -H 'Content-type:application/json; charset=utf-8' http://127.0.0.1:2171