Giter Club home page Giter Club logo

python-ravencoinlib's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python-ravencoinlib's Issues

CBlockHeader.deserialize: Not all bytes consumed during deserialization

The function Proxy.getblockheader throws an exception for blocks with height >= 1219736.The log:

python3 -c \
'from ravencoin.rpc import Proxy
prox = Proxy("http://testuser:[email protected]:8766")
blkhash = prox.getblockhash(1219736)
blkhdr = prox.getblockheader(blkhash)
print(blkhdr)
'
Traceback (most recent call last):
  File "<string>", line 4, in <module>
  File "/home/vlad/.local/lib/python3.8/site-packages/ravencoin/rpc.py", line 506, in getblockheader
    return CBlockHeader.deserialize(unhexlify(r))
  File "/home/vlad/.local/lib/python3.8/site-packages/ravencoin/core/serialize.py", line 127, in deserialize

Environment: Python 3.8.5; Ubuntu 20.04 LTS; Raven Core Daemon version v4.3.2.1-9def8ed6b

The log for block #1219735:

$ python3 -c 'from ravencoin.rpc import Proxy
prox = Proxy("http://testuser:[email protected]:8766")
blkhash = prox.getblockhash(1219735)
blkhdr = prox.getblockheader(blkhash)
print(blkhdr)
'
CBlockHeader(805306368, lx(0000000000000246ee4eab0e94b0bd5e30ffd09ffaca35ddd3b0582502a2fb6d), lx(e7c8a07b5edb7ba7a593ae49628ddd60b6b431abee0c801881861df2105bef80), 1588787973, 0x1a252b77, 0x6f20d01d)

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.