@@ -255,7 +255,7 @@ func main() {
255
255
case "debug-blocks" :
256
256
err = debugBlocks ()
257
257
case "clear-bigtable" :
258
- clearBigtable (opts .Table , opts .Family , opts .Key , opts .DryRun , bt )
258
+ clearBigtable (opts .Table , opts .Family , opts .Columns , opts . Key , opts .DryRun , bt )
259
259
case "index-old-eth1-blocks" :
260
260
indexOldEth1Blocks (opts .StartBlock , opts .EndBlock , opts .BatchSize , opts .DataConcurrency , opts .Transformers , bt , erigonClient )
261
261
case "update-aggregation-bits" :
@@ -923,7 +923,7 @@ func compareRewards(dayStart uint64, dayEnd uint64, validator uint64, bt *db.Big
923
923
924
924
}
925
925
926
- func clearBigtable (table string , family string , key string , dryRun bool , bt * db.Bigtable ) {
926
+ func clearBigtable (table string , family string , columns string , key string , dryRun bool , bt * db.Bigtable ) {
927
927
928
928
if ! dryRun {
929
929
confirmation := utils .CmdPrompt (fmt .Sprintf ("Are you sure you want to delete all big table entries starting with [%v] for family [%v]?" , key , family ))
@@ -946,7 +946,7 @@ func clearBigtable(table string, family string, key string, dryRun bool, bt *db.
946
946
// if err != nil {
947
947
// logrus.Fatal(err)
948
948
// }
949
- err := bt .ClearByPrefix (table , family , key , dryRun )
949
+ err := bt .ClearByPrefix (table , family , columns , key , dryRun )
950
950
951
951
if err != nil {
952
952
logrus .Fatalf ("error deleting from bigtable: %v" , err )
0 commit comments