Code Monkey home page Code Monkey logo

tinyvanityeth's People

Contributors

bcsongor avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

tinyvanityeth's Issues

Pow overflowed error

I had this running for about 3 hours

tinyvanityeth -s 000000000 -i 3600

then this occured

Status (24 threads)
  Difficulty:  68719476736
  Generated:   3794821063 addresses
  Speed:       341675 addr/s
  Probability: 5.372%
thread '<unnamed>' panicked at 'Pow overflowed', 
C:\Users\unknown\.cargo\registry\src\github.com-1ecc6299db9ec823\rust_decimal-1.29.0\src\maths.rs:283:21
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

and this

$ tinyvanityeth -s 000000000 -t 8 -i 300
Status (8 threads)
  Difficulty:  68719476736
  Generated:   60583819 addresses
  Speed:       201946 addr/s
  Probability: 0.088%
...
...
Status (8 threads)
  Difficulty:  68719476736
  Generated:   4224656512 addresses
  Speed:       167274 addr/s
  Probability: 5.963%
thread '<unnamed>' panicked at 'Pow overflowed', 
C:\Users\unknown\.cargo\registry\src\github.com-1ecc6299db9ec823\rust_decimal-1.29.0\src\maths.rs:283:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I'm using

$ rustc --version
rustc 1.68.1 (8460ca823 2023-03-20)

Specs:

Windows 10 Pro
21H2
19044.2728
AMD Ryzen 9 3900X 12-Core Processor 3.80 GHz

P.S.
seems like
// 1 - (1 - 1 /difficulty)^generated
if generated > u32 it causes Pow overflowed problem

tinyvanityeth/src/main.rs

Lines 204 to 209 in 450f52e

/// Calculates the probability of finding an address by specifying the `difficulty` of finding
/// an address with the given prefix and the total number of addresses `generated` so far.
fn calc_probability(difficulty: u128, generated: u128) -> Decimal {
Decimal::ONE
- (Decimal::ONE - Decimal::ONE / Decimal::from(difficulty)).powd(Decimal::from(generated))
}

How is probability calculated?

Please share more details on "Probability". Is the script calculating this based on how many addresses it already checked?

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.