Code Monkey home page Code Monkey logo

bth's People

Contributors

achow101 avatar ajtowns avatar cozz avatar domob1812 avatar dondreytaylor avatar empact avatar fanquake avatar gavinandresen avatar gmaxwell avatar instagibbs avatar jnewbery avatar jonasschnelli avatar jtimon avatar kallewoof avatar laanwj avatar luke-jr avatar meshcollider avatar morcos avatar non-github-bitcoin avatar paveljanik avatar petertodd avatar practicalswift avatar promag avatar pstratem avatar rebroad avatar ryanofsky avatar sdaftuar avatar sipa avatar thebluematt avatar theuni avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

bth's Issues

GetBlockHeader returns Corrupted Blockheader Data

When fetching the header of a block from the node using getblockheader
the json output is different than the raw hex output and leads to a corrupted block header data output.

fetching a block with raw output gives this here
beth-cli -rpcuser=xxx -rpcpassword=xxx -rpcport=xxx getblockheader 00000022407284e44b9ea0f975bf50f4237b786ef39be86161f9bf65b5108cb2 false

00000020cdcf548f0e41f7bfcdf5c621b49487e1aa2f7157106f060fc82f24b9040000002efbfd68d430b13c997a86a1315a02fca37d06a18af8eec179c71e27afc5e1dfb4cc0800000000000000000000000000000000000000000000000000000000009a963c5c1095001e05235f5a000050355a000000000000000000000000000000070000005be01d00640549b6c6e37b2203fc9c4b0a53232247340e6cdee2db2d83fa16cf975db5b650da843adf9a861f1b9ffa7acb39e7e1d0ab5b165109e1d9600e903b6c43aa43c25b3bf94ddd5e16330c0db02ee421fa5ce9ad0e5599108833f698aed3cca5d85074f193c3

fetching the same block with json format delivers a sligthly different data with missing several bytes here and there compared to the raw hex output !!!

beth-cli -rpcuser=xxx -rpcpassword=xxx -rpcport=xxx getblockheader 00000022407284e44b9ea0f975bf50f4237b786ef39be86161f9bf65b5108cb2

{
"hash": "00000022407284e44b9ea0f975bf50f4237b786ef39be86161f9bf65b5108cb2",
"confirmations": 6,
"height": 576692,
"version": 536870912,
"versionHex": "20000000",
"merkleroot": "dfe1c5af271ec779c1eef88aa1067da3fc025a31a1867a993cb130d468fdfb2e",
"time": 1547474586,
"mediantime": 1547470826,
"nonceUint32": 1516184325,
"nonce": "001de05b000000070000000000000000000000000000005a355000005a5f2305",
"solution": "0549b6c6e37b2203fc9c4b0a53232247340e6cdee2db2d83fa16cf975db5b650da843adf9a861f1b9ffa7acb39e7e1d0ab5b165109e1d9600e903b6c43aa43c25b3bf94ddd5e16330c0db02ee421fa5ce9ad0e5599108833f698aed3cca5d85074f193c3",
"bits": "1e009510",
"difficulty": 3517.229350104822,
"chainwork": "0000000000000000000000000000000000000000047e6d2d75a348be656faf11",
"previousblockhash": "00000004b9242fc80f066f1057712faae18794b421c6f5cdbff7410e8f54cfcd",
"nextblockhash": "00000069c21af6325eaec55d2c1092222bf59794d58001fb9ee34bb671d8ed50"
}

As a proof the last Solution Bytes from the Raw output

74f193c3

are nowhere to be found and missing in the json output field for the soultion !!!!
Also another byte that starts right after the nonce

64

is missing also in the json output !!!

Therefor the BlockChain Data output is corrupted and broken and can not be used !!!

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.