Skip to content

Commit 8d64939

Browse files
authored
Remove state=blockchain tag from block state (#3828)
1 parent 7e369b1 commit 8d64939

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

__tests__/unit/core-state/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export const setUp = async (setUpOptions = setUpDefaults, skipBoot = false): Pro
278278
Container.Identifiers.DposPreviousRoundStateProvider,
279279
);
280280

281-
const blockState = sandbox.app.get<BlockState>(Container.Identifiers.BlockState);
281+
const blockState = sandbox.app.getTagged<BlockState>(Container.Identifiers.BlockState, "state", "blockchain");
282282

283283
const dPosState = sandbox.app.getTagged<DposState>(Container.Identifiers.DposState, "state", "blockchain");
284284

packages/core-state/src/block-state.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ import { Enums, Identities, Interfaces, Utils } from "@arkecosystem/crypto";
55
// todo: review the implementation and make use of ioc
66
@Container.injectable()
77
export class BlockState {
8-
// @Container.inject(Container.Identifiers.Application)
9-
// private readonly app!: Contracts.Kernel.Application;
10-
118
@Container.inject(Container.Identifiers.WalletRepository)
12-
@Container.tagged("state", "blockchain") // TODO: Without this line - and despite
13-
// being intialised in the same way as the service provider - the tests fail to find a correct binding
149
private walletRepository!: Contracts.State.WalletRepository;
1510

1611
@Container.inject(Container.Identifiers.TransactionHandlerRegistry)

0 commit comments

Comments
 (0)