https://github.com/starcoinorg/stcmint-fight
https://github.com/starcoinorg/stcmint-fight
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/starcoinorg/stcmint-fight
- Owner: starcoinorg
- Created: 2020-12-07T03:31:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T02:39:35.000Z (over 4 years ago)
- Last Synced: 2024-12-30T09:16:08.889Z (10 months ago)
- Language: Rust
- Size: 152 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stcmint-fight
Caculate The result of [Starcoin testnet mining competition round 1](http://news.starcoin.org/en/2020/starcoin_testnet_mining_competition_r1/)#### Top n
Caculte the top n addresses during the competition time
#### Select the lucky addresses
Every address that participates in the mining competiton may become a lucky address* How lucky addresses are calculated
1. Lucky address pool: Addresses that have successfully mined blocks during the contest period will be entered into the address pool, and the weight of the lucky address will be **1+ Log2 block_count**, and will be sorted by block_count, where block_count is the total number of blocks mined by the address.
2. Luck address select
* Defined lucky address pool size as N, N is the size after weight correction.
* Take nonces as the seeds from some special block headers.
* set the lucky address index = seed mod N. The lucy address is corresponding to the index related value in the address pool.Enjoy your hacking.