Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@ public WhitelistedHashesRepository(ILoggerFactory loggerFactory, IKeyValueReposi
this.locker = new object();

this.logger = loggerFactory.CreateLogger(this.GetType().FullName);
}

public void Initialize()
{
// Load this before initialize to ensure its available to when the Mempool feature initializes.
lock (this.locker)
{
this.whitelistedHashes = this.kvRepository.LoadValueJson<List<uint256>>(dbKey) ?? new List<uint256>();
}
}

public void Initialize()
{
}

private void SaveHashes()
{
lock (this.locker)
Expand Down