40 Commits

Author SHA1 Message Date
ardocrat 473f9f33ad build: update rust edition 2021 2026-05-14 11:57:20 +03:00
David Burkett 789ff2859c Prep for release 2026-03-08 14:32:26 -04:00
ardocrat da7b6b5c50 Docker package build (#3816)
* bin: ability to use chain type argument for 'run' subcommand

* docker: single image for mainnet and testnet, update build docs

* docker: root user

* github: ghcr publish

* github: build image for master branch only

* docs: fix paths

* docker: move 'server run' to command

* Revert "bin: ability to use chain type argument for 'run' subcommand"

This reverts commit fc2d9199c3ff80c5c7305e3fc5b1f6fe86e8dacf.

* docker: disable tui at config
2026-01-06 13:39:18 -05:00
Quentin Le Sceller 0259ed23ea Update copyright year to 2021 (#3592)
* Update copyright year to 2021
2021-03-10 10:14:48 -05:00
Quentin Le Sceller cf2a65242d Rename Floonet to Testnet (#3431)
* Rename Floonet to Testnet

* Fix test

* Rename test and docker
2020-10-07 09:36:02 -04:00
Quentin Le Sceller d1b90f89a0 Update dockerfile with rust 1.45 and Debian Buster (#3426) 2020-08-17 12:11:27 -04:00
Antioch Peverell 6faa0e8d75 thread local chain type vs global chain type (#3327)
* Introduce GLOBAL_CHAIN_TYPE and make CHAIN_TYPE thread_local.
This makes testing more explicit and significantly more robust.

* set_local_chain_type() in tests

* cleanup - weird

* get pool tests working with explicit local chain_type config

* core tests working with explicit local chain_type

* p2p tests working with explicit local chain_type

* store tests working

* cleanup, feedback
2020-05-22 12:51:58 +01:00
hashmap 6556dd585d Pass byte slice to to_hex (#3307)
Currently we pass a Vec. This requires an extra allocation and copy of all elements if a caller doesn't have a Vec already, which is at least 95% of cases.
Another, a smaller issue, we have a function util::to_hex and some structs implement to_hex() on top of it, so we have a mix of it in the code. This PR introduces a trait and a blanket impl for AsRef<[u8]> which brings a uniform API (obj.to_hex()). One unfortunate case is arrays of size bigger than 32 - Rust doesn't implement AsRef for them so it requires an ugly hack (&array[..]).to_hex().
2020-04-24 11:18:26 +02:00
Quentin Le Sceller 6e5afe496b Update License to 2020 (#3196) 2020-01-20 11:40:58 +00:00
Quentin Le Sceller 6be6391225 Change 2018 to 2019 in copyright files (#3072) 2019-10-02 09:40:20 +01:00
Quentin Le Sceller ee9b9fe763 Update minimum required rust version and dockerfile (#2858) 2019-05-28 11:02:10 -04:00
hashmap 9ab23f6eef Implement graceful shutdown (#2812)
* Remove stop status mutex
* remove some deadlocks
* Rewrite stop channel handling
* fix deadlock in peers object
* add missing test fixes
2019-05-15 08:51:35 -07:00
Yeastplume a080284563 disable gen_gen crate (#2636) 2019-02-27 12:09:08 +00:00
Ignotus Peverell e7485ab5f1 Version bump to 1.0.0 2019-01-15 16:24:29 +00:00
Ignotus Peverell 60d3ee3c44 Bump version to 0.5.2 for release 2019-01-11 01:26:30 +00:00
Ignotus Peverell 2c5ba853f7 Version bump to 0.5.1 2019-01-07 19:41:07 +00:00
Ahmed Kamal daa712ae99 support floonet, separate entrypoint from cmd, add docker volume (#2265)
* support floonet, separate entrypoint from cmd, add docker volume

* Separate Dockerfile for floonet

* Spelling and docs
2019-01-01 16:00:21 -08:00
Ignotus Peverell 9234e3c251 Re-launch floonet (#2249)
*  Fix secondary scaling bugs;  rename is_testnet -> is_floonet (#2215)
* add global::is_mainnet()
* use it to change pre-genesis pow type
* rename is_testnet -> is_floonet
* Support multiple chain configurations (#2217)
* Support multiple chain configurations
Supports generating the proper configuration for each chain type
(mainnet, floonet, usernet). Will run them by default under
their respective root directory (~/.grin/main, ~/.grin/floo, etc).
Assigned default ports for mainnet, overriding them to keep Floonet
ports unchanged.
For now, starting on mainnet will abort.
* Fixed usernet command line help message. Fixes #2217
* Differing magic numbers for each chain type (#2208)
* stick to e=H(R|P|m) when use schnorr signature (#2200)
* stick to e=H(R|P|m) when use schnorr signature
* (1)add verify_slate_messages for wallet receive (2)log the message content
* remove debug log on verify_slate_messages
* verify the sender's message signature when receive_tx in wallet listen
* Revert "remove debug log on verify_slate_messages"

This reverts commit 65ea32a407bfd57d02bf169803f1483ba611962e.

* Revert "rustfmt"

This reverts commit c380ab91856344b73595bb04eef1fc087dedd84d.

* Revert "(1)add verify_slate_messages for wallet receive (2)log the message content"

This reverts commit 9584ca7a893b22a768dea061039140033c07e8eb.

* [re-floonet] Keychain Floonet BIP32 version/network option (#2235)

* add 'is_floonet' property to keychain
* fix hex encoding and tests

* Fix couple floonet loose ends (#2230)

* Fix couple floonet loose ends. Fixes #2216
* Doc fix for sig message

* Refuse unkown kernel features (#2244)

* Minor: magic number change for re-floonet

* Set pre genesis is_secondary to true (#2247)

* Minor: tx validation error display underlying

* New floonet genesis

* genesis rustfmt

* Use chain-specific config for wallet toml gen

* Fix default wallet_listener_url

* New more reasonable genesis block, bumped version

* genesis rustfmt

* Couple minor fixes to genesis generation script
2018-12-28 14:46:21 -08:00
Ignotus Peverell 892fbc0ac4 rustfmt 2018-12-22 18:16:53 +00:00
Ignotus Peverell 58aa566e82 Move prev_root setting to after set_txhashset_roots so it doesn't get overwritten. Remove git interactions, easier done manually. 2018-12-22 18:16:41 +00:00
Ignotus Peverell 7284cfec72 Changed magic number and seeds for Floonet (#2188)
* Changed magic number and seeds for Floonet.
* Genesis generator now loads a local wallet seed to build coinbase.
2018-12-20 11:08:01 -08:00
Ignotus Peverell a71af7adae Also produce full block hashes 2018-12-14 22:12:54 +00:00
Ignotus Peverell 194235a5a7 Fixes to nonce handling in genesis mining 2018-12-14 21:48:08 +00:00
Ignotus Peverell 40e94f53b6 rustfmt 2018-12-14 04:51:52 +00:00
Ignotus Peverell 23cf377d3d Check plugin errors, uncomment PoW validation 2018-12-14 04:51:35 +00:00
Ignotus Peverell 80726c7f8f Fixed various replacements to obtain a compilable, well-formed genesis 2018-12-14 02:56:45 +00:00
Ignotus Peverell 2386ce3b8a Complete genesis replacement 2018-12-14 00:46:41 +00:00
Ignotus Peverell 18416e8528 Use miner as library to get a solution for genesis. Replace final values in genesis.rs before committing it. 2018-12-13 01:54:25 +00:00
Ignotus Peverell 31e69e66ac Mine a valid Cuckaroo solution for genesis block 2018-12-12 23:29:06 +00:00
Ignotus Peverell e4ecc30884 Merged upstream 2018-12-11 18:54:44 +00:00
Ignotus Peverell 725499bbf0 Trying to fix slight snafu 2018-12-11 01:09:28 +00:00
Ignotus Peverell 1be37870a2 Trying to fix slight snafu 2018-12-11 01:09:11 +00:00
Ignotus Peverell a58235f603 Trying to fix slight snafu 2018-12-11 01:08:02 +00:00
Ignotus Peverell 3e7bc2888c Get last bitcon block hash, setup genesis header without PoW (for now) 2018-12-11 00:39:39 +00:00
hashmap 5f0f0f6ff9 Bump Docker base image to rust 1.31 (#2101)
Bump Docker base image to rust 1.31
2018-12-08 09:48:26 +01:00
Ignotus Peverell cd135c4dca Slight crate order tweak, publish the root 2018-12-07 14:32:36 -08:00
Ignotus Peverell 1e675d5afc Typo in script 2018-12-07 09:34:33 -08:00
Ignotus Peverell 4573c0f1ee Script to publish to crates.io (#2093) 2018-12-06 20:46:39 -08:00
Quentin Le Sceller 798565d02e Fix and update Docker image 2018-11-30 10:35:24 -05:00
Ignotus Peverell ee5fd489bb Moving distro-related files to etc subdir 2018-11-08 22:29:30 +00:00