Skip to content

Commit

Permalink
Remove state=blockchain tag from block state (#3828)
Browse files Browse the repository at this point in the history
  • Loading branch information
rainydio authored Jun 24, 2020
1 parent 7e369b1 commit 8d64939
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion __tests__/unit/core-state/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export const setUp = async (setUpOptions = setUpDefaults, skipBoot = false): Pro
Container.Identifiers.DposPreviousRoundStateProvider,
);

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

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

Expand Down
5 changes: 0 additions & 5 deletions packages/core-state/src/block-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ import { Enums, Identities, Interfaces, Utils } from "@arkecosystem/crypto";
// todo: review the implementation and make use of ioc
@Container.injectable()
export class BlockState {
// @Container.inject(Container.Identifiers.Application)
// private readonly app!: Contracts.Kernel.Application;

@Container.inject(Container.Identifiers.WalletRepository)
@Container.tagged("state", "blockchain") // TODO: Without this line - and despite
// being intialised in the same way as the service provider - the tests fail to find a correct binding
private walletRepository!: Contracts.State.WalletRepository;

@Container.inject(Container.Identifiers.TransactionHandlerRegistry)
Expand Down

0 comments on commit 8d64939

Please sign in to comment.