-
-
Notifications
You must be signed in to change notification settings - Fork 454
Expand file tree
/
Copy pathindex.ts
More file actions
36 lines (33 loc) · 1.19 KB
/
index.ts
File metadata and controls
36 lines (33 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import {EpochContext, CachedValidatorsBeaconState} from "../util";
import {BeaconBlock} from "@chainsafe/lodestar-types";
import {processBlockHeader} from "./processBlockHeader";
import {processRandao} from "./processRandao";
import {processEth1Data} from "./processEth1Data";
import {processOperations} from "./processOperations";
import {processAttestation} from "./processAttestation";
import {processAttesterSlashing} from "./processAttesterSlashing";
import {processDeposit} from "./processDeposit";
import {processProposerSlashing} from "./processProposerSlashing";
import {processVoluntaryExit} from "./processVoluntaryExit";
export {
processBlockHeader,
processRandao,
processEth1Data,
processOperations,
processAttestation,
processAttesterSlashing,
processDeposit,
processProposerSlashing,
processVoluntaryExit,
};
export function processBlock(
epochCtx: EpochContext,
state: CachedValidatorsBeaconState,
block: BeaconBlock,
verifySignatures = true
): void {
processBlockHeader(epochCtx, state, block);
processRandao(epochCtx, state, block, verifySignatures);
processEth1Data(epochCtx, state, block.body);
processOperations(epochCtx, state, block.body, verifySignatures);
}