Giter VIP home page Giter VIP logo

testargetreverse's Introduction

TesTargetReverse

RE of TESlacoin GetNextTargetRequired()

$ ./main 
Max targets:
0x00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
0x000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
0x00000003ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Compacts:
Max target (0x00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) as compact: 504365055
SetCompact() nSize: 30
GetCompact(504365055): 504365055
GetCompact(504365055) as hex: 0x00000fffff000000000000000000000000000000000000000000000000000000
GetCompact() from hex: 0x00000fffff000000000000000000000000000000000000000000000000000000: 504365055
Get target algo (pow) constants
nStakeMinAge: 86400
nStakeMaxAge: 7776000
nStakeTargetSpacing: 30
nTargetTimespan: 13823
nTargetSpacingWorkMax: 360
Inputs:
pBlockHeight: 8
ppBlockHeight: 8
prevBits: 504365055
pBlockTime: 1390010337
ppBlockTime: 1390010322
Calculations:
actualSpacing: 15
targetSpacing: 30
interval: 460
Setting bits in bignum
SetCompact() nSize: 30
Val after first op: 537091711 (0x035e7fca18000000000000000000000000000000000000000000000000000000). Right operand: 13800
New target is: 504362780 (0x00000ff71c6f101aa7b47a2b5085468662d8929a609fee3add03e31fa7265113). Right operand: 13830

testargetreverse's People

Contributors

chutchut avatar

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.