Giter VIP home page Giter VIP logo

cat-addresses's People

Contributors

freddiecoleman avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cat-addresses's Issues

Snapshot generation fails at height: 1659695

While generating the snapshot generation fails after almost a day of runtime, at height 1659695, with the following truncated output:

....

INFO:CatSnapshot:coin_name c8cc80908629b6afa3fda412f9db641033de65ae59751db7ccfb4dda0812359b amount 7736658533 tail_hash b7c0b9c3a59898a8a9e9be1e9d77d63be558bc57060257a2a667c8ca7ab687a8 spent_height 1675378
INFO:CatSnapshot:Persisted CAT coin created with name a7b64fb17a2d9637eebc4edbd0e9b84bdb9f291fa6e760e9ad1ec6c30773f0e1, TAIL b7c0b9c3a59898a8a9e9be1e9d77d63be558bc57060257a2a667c8ca7ab687a8, height 1675378
INFO:CatSnapshot:Persisted CAT coin created with name a7514065b5653d9517b3e2d4c38d4f5e6dba594a94d55e9ba7a5d11cd861190d, TAIL b7c0b9c3a59898a8a9e9be1e9d77d63be558bc57060257a2a667c8ca7ab687a8, height 1675378
INFO:CatSnapshot:coin_name 9e209f34e4c322d2c8b55bf1916dcee810c5727ed836c05b7364112f9aca29c0 amount 1032000 tail_hash 7f3584af7b574030af5be244b6ae332fd3820b44e96e4880bbe7aa8cc05edc88 spent_height 1659695
Traceback (most recent call last):
  File "start.py", line 15, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete
    return future.result()
  File "start.py", line 12, in main
    await cat_snapshot.generate()
  File "/home/farmer/Crypto/chia/cat1_snapshot/src/cat_snapshot.py", line 126, in generate
    persist_coin_create(cursor, coin_create_record)
  File "/home/farmer/Crypto/chia/cat1_snapshot/src/database.py", line 89, in persist_coin_create
    coin_create_record.created_height
sqlite3.IntegrityError: UNIQUE constraint failed: coin_create.coin_name
ERROR:asyncio:Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f8c65328690>

UPDATE:

I also tried running a much smaller snapshot, one at the beginning of the original height range, and one at the end, but the result was the same.

CAT crash

INFO:CatSnapshot:Skipping non-transaction block at height 2311760
INFO:CatSnapshot:coin_name 6343f0738ccdf567b02b8f5e35d9a1a0eec2f8924b2322e0de670a5e38c36a8f amount 1000000000000 tail_hash 78ad32a8c9ea70f27d73e9306fc467bab2a6b15b30289791e37ab6e8612212b1 spent_height 1146819
Traceback (most recent call last):
File "/home/user/chia-blockchain/CAT-addresses/start.py", line 15, in
asyncio.run(main())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/user/chia-blockchain/CAT-addresses/start.py", line 12, in main
await cat_snapshot.generate()
File "/home/user/chia-blockchain/CAT-addresses/src/cat_snapshot.py", line 111, in generate
).get_tree_hash(coin.puzzle_hash)
TypeError: Program.get_tree_hash() takes 1 positional argument but 2 were given
ERROR:asyncio:Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f82e35646a0>
ERROR:asyncio:Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7f82e3526ce0>, 299874.142541744)]']
connector: <aiohttp.connector.TCPConnector object at 0x7f82e3566230>

What could be the reason ?

problems running $ python start.py

Hello,
Everything was running fine during installation but when i run
$ python start.py
i got error

(venv) vili@dri ~/chia-blockchain/CAT-addresses $ python start.py
INFO:FullNode:Checking node status
INFO:FullNode:Node online
Traceback (most recent call last):
File "/home/vili/chia-blockchain/CAT-addresses/start.py", line 16, in
asyncio.run(main())
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/vili/chia-blockchain/CAT-addresses/start.py", line 12, in main
await cat_snapshot.generate()
File "/home/vili/chia-blockchain/CAT-addresses/src/cat_snapshot.py", line 57, in generate
await self.__process_block(height)
File "/home/vili/chia-blockchain/CAT-addresses/src/cat_snapshot.py", line 145, in __process_block
self.log.debug("Got block record %s at height: %i", block_record.header_hash, height)
AttributeError: 'NoneType' object has no attribute 'header_hash'
ERROR:asyncio:Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fe31134cdf0>
ERROR:asyncio:Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7fe311302bc0>, 76836.762119558)]']
connector: <aiohttp.connector.TCPConnector object at 0x7fe31134ce50>

Can someone help or point me what is wrong ?
Thanks !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.