last_chunk.py 677 B

12345678910111213141516171819
  1. from typing import Any
  2. from src.cluster.lastchunk import restore_last_chunk
  3. def main(args: Any):
  4. restore_last_chunk(args.transaction_csv, args.out_csv, min_block=args.min_block, t_max=args.t_max)
  5. if __name__ == "__main__":
  6. import argparse
  7. parser = argparse.ArgumentParser()
  8. parser.add_argument('transaction_csv', type=str, help='path to transaction csv')
  9. parser.add_argument('out_csv', type=str, help='path to output csv')
  10. parser.add_argument('min_block', type=int, help='smallest block number to consider')
  11. parser.add_argument('--t-max', type=int, default=3200, help='t_max (default: 3200)')
  12. args: Any = parser.parse_args()
  13. main(args)