-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Patch for crust * Fix cal * Add crust calc support * Recover .env.local * Reduction * Add ness config * Regen wasm and resolve comments by adding EOL * Fix Co-authored-by: MyronFanQiu <qiufan_glamour@hotmail.com>
- Loading branch information
1 parent
1c5f16a
commit 72be2df
Showing
6 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { ControllerConfig } from '../types/chains-config'; | ||
import { initLRUCache } from './cache/lruCache'; | ||
import { getBlockWeight } from './metadata-consts'; | ||
|
||
/** | ||
* Controllers for crust collator | ||
*/ | ||
export const crustControllers: ControllerConfig = { | ||
controllers: [ | ||
'AccountsBalanceInfo', | ||
'AccountsValidate', | ||
'Blocks', | ||
'BlocksExtrinsics', | ||
'NodeNetwork', | ||
'NodeTransactionPool', | ||
'NodeVersion', | ||
'PalletsStorage', | ||
'RuntimeCode', | ||
'RuntimeMetadata', | ||
'RuntimeSpec', | ||
'TransactionDryRun', | ||
'TransactionFeeEstimate', | ||
'TransactionMaterial', | ||
'TransactionSubmit', | ||
], | ||
options: { | ||
finalizes: true, | ||
minCalcFeeRuntime: 1, | ||
blockWeightStore: getBlockWeight('crust'), | ||
blockStore: initLRUCache(), | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { MetadataConsts } from '../../types/chains-config'; | ||
import { extrinsicBaseWeight } from './substrateConsts'; | ||
|
||
export const crustDefinitions: MetadataConsts[] = [ | ||
{ | ||
runtimeVersions: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], | ||
extrinsicBaseWeight, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters