-
- Downloads
[feat] generator: add `--nocheck-issuer` option
parent
2db8c037
No related branches found
No related tags found
Showing
- app/lib/blockchain/DuniterBlockchain.ts 3 additions, 2 deletionsapp/lib/blockchain/DuniterBlockchain.ts
- app/lib/computation/BlockchainContext.ts 5 additions, 2 deletionsapp/lib/computation/BlockchainContext.ts
- app/modules/crawler/lib/sync/v2/GlobalIndexStream.ts 1 addition, 0 deletionsapp/modules/crawler/lib/sync/v2/GlobalIndexStream.ts
- app/modules/prover/index.ts 9 additions, 1 deletionapp/modules/prover/index.ts
- app/service/BlockchainService.ts 2 additions, 2 deletionsapp/service/BlockchainService.ts
... | ... | @@ -122,6 +122,10 @@ export const ProverDependency = { |
desc: | ||
"With gen-* commands: the generated block is submitted to this node only.", | ||
}, | ||
{ | ||
value: "--nocheck-issuer", | ||
|
||
desc: "With gen-* commands: ignore issuer rule.", | ||
}, | ||
{ | ||
value: "--submit-host <host>", | ||
desc: | ||
... | ... | @@ -276,7 +280,11 @@ function generateAndSend( |
const parsed = parsers.parseBlock.syncWrite( | ||
block.getRawSigned() | ||
); | ||
await server.BlockchainService.checkBlock(parsed, false); | ||
await server.BlockchainService.checkBlock( | ||
parsed, | ||
false, | ||
program.nocheckIssuer | ||
); | ||
logger.info("Acceptable block"); | ||
next(); | ||
} catch (e) { | ||
... | ... |