Skip to content

Instantly share code, notes, and snippets.

@neurosis69
neurosis69 / coin_store.md
Last active February 21, 2024 13:04
coin_store.py with batch inserts
  • added additional monitoring to the new_block function
  • changed the _add_coin_records function to use batches of size MAX_ROWS_PER_BATCH = 50 // fields_per_record
    async def new_block(
        self,
        height: uint32,
        timestamp: uint64,
        included_reward_coins: Set[Coin],

Keybase proof

I hereby claim:

  • I am neurosis69 on github.
  • I am neurosis (https://keybase.io/neurosis) on keybase.
  • I have a public key ASBYYNe7qdRrUJz9QHxmn0hflEEBTXT1lb52U-fE1gmDkwo

To claim this, I am signing this object: