xelis-project / xelis-blockchain Goto Github PK
View Code? Open in Web Editor NEWA private blockDAG using Homomorphic Encryption with Smart Contract support
A private blockDAG using Homomorphic Encryption with Smart Contract support
$ 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
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:
Both Blake2b and Blake3 have been successfully used in mainnet in several crypto projects.
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.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.