@@ -1039,8 +1039,9 @@ func (c *ClickHouseConnector) DeleteBlockData(chainId *big.Int, blockNumbers []*
10391039
10401040func (c * ClickHouseConnector ) deleteBlocks (chainId * big.Int , blockNumbers []* big.Int ) error {
10411041 blocksQueryResult , err := c .GetBlocks (QueryFilter {
1042- ChainId : chainId ,
1043- BlockNumbers : blockNumbers ,
1042+ ChainId : chainId ,
1043+ BlockNumbers : blockNumbers ,
1044+ ForceConsistentData : true ,
10441045 }, "*" )
10451046 if err != nil {
10461047 return err
@@ -1055,8 +1056,9 @@ func (c *ClickHouseConnector) deleteBlocks(chainId *big.Int, blockNumbers []*big
10551056
10561057func (c * ClickHouseConnector ) deleteLogs (chainId * big.Int , blockNumbers []* big.Int ) error {
10571058 logsQueryResult , err := c .GetLogs (QueryFilter {
1058- ChainId : chainId ,
1059- BlockNumbers : blockNumbers ,
1059+ ChainId : chainId ,
1060+ BlockNumbers : blockNumbers ,
1061+ ForceConsistentData : true ,
10601062 }, "*" )
10611063 if err != nil {
10621064 return err
@@ -1071,8 +1073,9 @@ func (c *ClickHouseConnector) deleteLogs(chainId *big.Int, blockNumbers []*big.I
10711073
10721074func (c * ClickHouseConnector ) deleteTransactions (chainId * big.Int , blockNumbers []* big.Int ) error {
10731075 txsQueryResult , err := c .GetTransactions (QueryFilter {
1074- ChainId : chainId ,
1075- BlockNumbers : blockNumbers ,
1076+ ChainId : chainId ,
1077+ BlockNumbers : blockNumbers ,
1078+ ForceConsistentData : true ,
10761079 }, "*" )
10771080 if err != nil {
10781081 return err
@@ -1087,8 +1090,9 @@ func (c *ClickHouseConnector) deleteTransactions(chainId *big.Int, blockNumbers
10871090
10881091func (c * ClickHouseConnector ) deleteTraces (chainId * big.Int , blockNumbers []* big.Int ) error {
10891092 tracesQueryResult , err := c .GetTraces (QueryFilter {
1090- ChainId : chainId ,
1091- BlockNumbers : blockNumbers ,
1093+ ChainId : chainId ,
1094+ BlockNumbers : blockNumbers ,
1095+ ForceConsistentData : true ,
10921096 }, "*" )
10931097 if err != nil {
10941098 return err
0 commit comments