Skip to content

Instantly share code, notes, and snippets.

@garethtdavies
Last active July 22, 2019 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garethtdavies/52b16d1bf9fb410f7398ed0fc90dfc60 to your computer and use it in GitHub Desktop.
Save garethtdavies/52b16d1bf9fb410f7398ed0fc90dfc60 to your computer and use it in GitHub Desktop.
zcash-migration-blocksci
import blocksci
chain = blocksci.Blockchain("/home/gareth/blocksci/zcash-data")
migration_tx = 0
for blk in chain[500000:571501]:
for tx in blk:
if (tx.is_saplingshielded and tx.is_sproutshielded):
print(tx.hash)
migration_tx += 1
print("Number of migration transactions is {}".format(migration_tx))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment