mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-09 21:17:54 -05:00
Revert "make snapshots the default behavior" (#4708)
* revert snapshots-by-default Signed-off-by: garyschulte <garyschulte@gmail.com>
This commit is contained in:
@@ -22,7 +22,7 @@ import org.immutables.value.Value;
|
||||
public interface DataStorageConfiguration {
|
||||
|
||||
long DEFAULT_BONSAI_MAX_LAYERS_TO_LOAD = 512;
|
||||
boolean DEFAULT_BONSAI_USE_SNAPSHOTS = true;
|
||||
boolean DEFAULT_BONSAI_USE_SNAPSHOTS = false;
|
||||
|
||||
DataStorageConfiguration DEFAULT_CONFIG =
|
||||
ImmutableDataStorageConfiguration.builder()
|
||||
|
||||
@@ -96,7 +96,10 @@ public class BonsaiWorldStateArchiveTest {
|
||||
public void testGetMutableReturnEmptyWhenLoadMoreThanLimitLayersBack() {
|
||||
bonsaiWorldStateArchive =
|
||||
new BonsaiWorldStateArchive(
|
||||
new BonsaiWorldStateKeyValueStorage(storageProvider), blockchain, Optional.of(512L));
|
||||
new BonsaiWorldStateKeyValueStorage(storageProvider),
|
||||
blockchain,
|
||||
Optional.of(512L),
|
||||
false);
|
||||
final BlockHeader blockHeader = blockBuilder.number(0).buildHeader();
|
||||
final BlockHeader chainHead = blockBuilder.number(512).buildHeader();
|
||||
when(blockchain.getBlockHeader(eq(blockHeader.getHash()))).thenReturn(Optional.of(blockHeader));
|
||||
|
||||
Reference in New Issue
Block a user