Code Monkey home page Code Monkey logo

xelis-blockchain's People

Contributors

g45t345rt avatar litarvan avatar slixe avatar

Stargazers

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

Watchers

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

xelis-blockchain's Issues

error: no bin target named `daemon`.

$ cargo run --bin daemon
error: no bin target named `daemon`.
Available bin targets:
    xelis_daemon
    xelis_miner
    xelis_wallet

Please correct README.md
cargo run --bin daemon
To
cargo run --bin xelis_daemon

Consider using a different function for fast-hash

At the time of writing, Xelis is using SHA3/Keccak for block hashes.

Since block time will be very small (blockDAG), it may be interesting to explore faster hash functions for the use in Xelis.
Especially considering Keccak is slower than SHA256. Synchronization times can be slowed down significantly by the hashing.

Some notable alternatives:

  • Blake2 (especially blake2b, maybe a truncated version?)
  • Blake3

Both Blake2b and Blake3 have been successfully used in mainnet in several crypto projects.

Peerlist possible corruption

Xelis-daemon's peerlist is only saved on graceful shutdown.

This can cause loss of peers data, if the daemon is shut down abruptly, and significant load to seed nodes.

Consider saving the peerlist more frequently during the normal operation of daemon.

Perhaps moving peerlist to a safer, faster database than full JSON rewrites, which can cause corruption.

'Error while generating pow hash' on Apple M1 Mac

Hey all, trying to start mining on an Apple M1 laptop.
Running into this error when starting xelis_daemon:

[2024-04-20] (21:26:14.252) INFO                    xelis_daemon > XELIS Blockchain running version: 1.9.0-3c8af1a
[2024-04-20] (21:26:14.253) INFO                    xelis_daemon > ----------------------------------------------
[2024-04-20] (21:26:14.277) INFO  xelis_daemon::core::blockchain > Initializing chain...
[2024-04-20] (21:26:14.277) INFO  xelis_daemon::core::blockchain > De-serializing genesis block for network Mainnet...
Error: Error while generating pow hash

Caused by:
    Error while hashing

This is caused by running the daemon on a Mac laptop. I've successfully built the executables and created a wallet, but cannot start the daemon.

Dubious necessity of an uint128 for timestamp values

As seen on https://github.com/xelis-project/xelis-blockchain/blob/dev/xelis_common/src/block/mod.rs#L50 , Xelis seems to be using an unsigned 128-bit value for representing millisecond timestamps.

The necessity of this is dubious.
An unsigned 64-bit integer (uint64 aka u64) can store 2^64 (18446744073709551616) values.
It means that it can store 584942417 years in milliseconds.

So, I think an uint64 is more than enough for the scope of this project.

8 bytes per block, with an average of 2 blocks per second, is around 504 MB a year.

EDIT:
8 bytes per block, with an average of 1 block every 15 seconds, is around 2.1 MB a year.

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.