memo for range & entries

This commit is contained in:
Jaco Greeff
2020-03-09 22:57:09 +01:00
parent bcbd4b8d40
commit c1facd8b1c
5 changed files with 18 additions and 13 deletions
+4
View File
@@ -360,6 +360,10 @@ export default class Rpc implements RpcInterface {
// - null - The storage key is empty
return keys.reduce((results, key: StorageKey): Codec[] => {
try {
// if (changes.some(([, val]) => val && val.length > 5000)) {
// console.error(`LARGE ${key.section}.${key.method}`);
// }
results.push(this.formatStorageSet(key, changes, withCache));
} catch (error) {
console.error(`Unable to decode storage ${key.section}.${key.method}:`, error.message);