Skip to content

Commit

Permalink
Make of this what you will but it cargo fmt better (#3572)
Browse files Browse the repository at this point in the history
* Make of this what you will but it cargo fmt better

* Reduce clippy excitement.
gilescope authored Mar 22, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 87ff219 commit 302c8ec
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions core/src/genesis.rs
Original file line number Diff line number Diff line change
@@ -44,6 +44,7 @@ pub fn genesis_dev() -> core::Block {
}

/// Testnet genesis block
#[allow(clippy::inconsistent_digit_grouping)]
pub fn genesis_test() -> core::Block {
let gen = core::Block::with_header(core::BlockHeader {
height: 0,
@@ -76,7 +77,7 @@ pub fn genesis_test() -> core::Block {
nonce: 23,
proof: Proof {
nonces: vec![
16994232, 22975978, 32664019, 44016212, 50238216, 57272481, 85779161,
16994232_, 22975978_, 32664019_, 44016212_, 50238216_, 57272481_, 85779161_,
124272202, 125203242, 133907662, 140522149, 145870823, 147481297, 164952795,
177186722, 183382201, 197418356, 211393794, 239282197, 239323031, 250757611,
281414565, 305112109, 308151499, 357235186, 374041407, 389924708, 390768911,
@@ -156,6 +157,7 @@ pub fn genesis_test() -> core::Block {
}

/// Mainnet genesis block
#[allow(clippy::inconsistent_digit_grouping)]
pub fn genesis_main() -> core::Block {
let gen = core::Block::with_header(core::BlockHeader {
height: 0,
@@ -188,12 +190,12 @@ pub fn genesis_main() -> core::Block {
nonce: 41,
proof: Proof {
nonces: vec![
4391451, 36730677, 38198400, 38797304, 60700446, 72910191, 73050441, 110099816,
140885802, 145512513, 149311222, 149994636, 157557529, 160778700, 162870981,
179649435, 194194460, 227378628, 230933064, 252046196, 272053956, 277878683,
288331253, 290266880, 293973036, 305315023, 321927758, 353841539, 356489212,
373843111, 381697287, 389274717, 403108317, 409994705, 411629694, 431823422,
441976653, 521469643, 521868369, 523044572, 524964447, 530250249,
4391451__, 36730677_, 38198400_, 38797304_, 60700446_, 72910191_, 73050441_,
110099816, 140885802, 145512513, 149311222, 149994636, 157557529, 160778700,
162870981, 179649435, 194194460, 227378628, 230933064, 252046196, 272053956,
277878683, 288331253, 290266880, 293973036, 305315023, 321927758, 353841539,
356489212, 373843111, 381697287, 389274717, 403108317, 409994705, 411629694,
431823422, 441976653, 521469643, 521868369, 523044572, 524964447, 530250249,
],
edge_bits: 29,
},

0 comments on commit 302c8ec

Please sign in to comment.