Commit graph

1820 commits

Author SHA1 Message Date
Antioch Peverell
a0b9aa5967
Sign kernel features (#2104)
* include kernel features in msg being signed
hash the msg before signing it (for consistent 32 bytes)

* rustfmt

* fix various tests

* no HF for this (mainnet only)
2018-12-12 09:19:36 +00:00
Ignotus Peverell
2dcaa4613d
Merged upstream 2018-12-11 18:55:46 +00:00
Ignotus Peverell
e4ecc30884
Merged upstream 2018-12-11 18:54:44 +00:00
Quentin Le Sceller
ec1713320b Disable authenthication for OPTIONS requests (#2131) 2018-12-11 09:47:10 -08:00
Quentin Le Sceller
3bb615a753
Merge pull request #2128 from quentinlesceller/tokio
Temporarily lock tokio on 0.1.11
2018-12-11 12:42:36 -05:00
Yeastplume
fb11dd3f4e
Don't allow same transaction to be received multiple times (#2124)
* don't allow same transaction to be received multiple times

* issues in other tests uncovered and fixed

* allow tx_hex update function to operate without an account being specified, to allow finalize_tx function to work without an account being specified

* rustfmt

* fix to retrieve_txs

* rustfmt
2018-12-11 17:18:31 +00:00
Antioch Peverell
c5e771cbf0 run chain compaction on startup (#2127)
* run chain compaction on startup
* make sure we can compact an empty chain
2018-12-11 08:52:55 -08:00
Quentin Le Sceller
a9a3264a51
Temporarily lock tokio on 0.1.11 2018-12-11 09:51:40 -05:00
Antioch Peverell
16641fe149
Cleanup compact block logging (#2126)
* cleanup logging, error logging around compact blocks

* rustfmt
2018-12-11 14:11:58 +00:00
Antioch Peverell
2d4538c428
Clean shutdown via stop_state (#2117)
* clean shutdown wip

* rustfmt

* introduce StopState that we can lock on

* rustfmt

* take lock on stop_state during critical processing (process_block_single etc.)

* rustfmt

* take lock on stop_state during chain::init()

* cleanup

* cleanup

* rustfmt

* docs/comments

* fixup servers tests

* cleanup p2p tests
2018-12-11 11:07:41 +00:00
Quentin Le Sceller
ec9cdf0ecd Remove temporary BIP32 note (#2115)
* Remove temporary BIP32 note

* Rustfmt
2018-12-11 10:41:54 +00:00
Ignotus Peverell
d4234a47b7
Merge branch 'master' into gen_gen 2018-12-10 17:53:32 -08: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
934b11d06f
More a few properties to mainnet genesis. Don't get too excited, several are placeholders. 2018-12-11 01:07:17 +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
Ignotus Peverell
e24e087fd1
Clean servers crate dev dependency on config (#2099) 2018-12-10 11:21:35 -08:00
David Burkett
62d644e1f4 Only MAX_BLOCK_HEADERS - 1 (511) headers sent during sync, instead of MAX_BLOCK_HEADERS (512) (#2116) 2018-12-10 10:35:07 -08:00
Ignotus Peverell
d179559005
One more use fell through the cracks in merge 2018-12-10 18:32:56 +00:00
David Burkett
0ce8f3e1cd Changing compression method to 'stored' instead of bzip2. (#2111) 2018-12-10 10:20:21 -08:00
Yeastplume
b7fe4d6621
Wallet command line tests (#2114)
* tests in place for wallet command line

* tests in place for wallet command line
2018-12-10 14:54:56 +00:00
Mark Renten
5ccaf8cc67 functional version - cleanup pmmr_leaf snapshot files (from fast-sync) (#2109)
* Issue #1348 - cleanup pmmr_leaf snapshot files (from fast-sync)

* create a new function in store::pmmr to delete files
* call the new function during compaction
* create test coverage for the new function

* formatting

* Fix rustdoc issue

I had to add a text annotation to the preformatted block to prevent cargo from creating a doctest.

* don't delete files that were recently accessed

* parameterize the age in the cleanup function
* add a new constant defining how long the rewind files should be saved for
* enhance the unit test to include files that were too new to be deleted and files that were old enough to be deleted

* formatting

* formatting

* remove errant println statement

* functional style change
2018-12-10 09:35:25 +00:00
Ignotus Peverell
a7712bf911
Merged upstream 2018-12-10 03:40:09 +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
hashmap
f7164d63f0
Document 1.31 as a minimal Rust version (#2100)
Document 1.31 as a minimal Rust version
2018-12-08 09:47:31 +01:00
hashmap
aedac483f5
Convert to Rust 2018 edition (#2084)
* Convert to Rust 2018 edition

* Update gitignore
2018-12-08 00:59:40 +01:00
Ignotus Peverell
71664457de
Clean servers crate dev dependency on config 2018-12-07 22:43:37 +00:00
Ignotus Peverell
cd135c4dca
Slight crate order tweak, publish the root 2018-12-07 14:32:36 -08:00
Ignotus Peverell
b06b4507c1
Tests in chain and pool crates don't depend on wallet anymore (#2092) 2018-12-07 09:38:01 -08:00
Ignotus Peverell
1e675d5afc
Typo in script 2018-12-07 09:34:33 -08:00
Yeastplume
68896b2a76
Wallet test framework (#2098)
* remove circular dependency

* rustfmt

* move wallet test framework
2018-12-07 17:18:33 +00:00
hashmap
a6bb6344ac
Fix seed thread crash (#2096)
We get overflow in some tests, peraps in real life too
Fixes #2095
2018-12-07 17:09:26 +01:00
Yeastplume
d1b484259b
Wallet command line automated testing (#2097)
* wallet test infrastructure

* rustfmt

* successful wallet create

* rustfmt

* start of command line tests

* rustfmt
2018-12-07 15:06:28 +00:00
Ignotus Peverell
4573c0f1ee
Script to publish to crates.io (#2093) 2018-12-06 20:46:39 -08:00
Ignotus Peverell
3fdfa0b607
Fixed missing versioned dependency in core 2018-12-07 00:17:35 +00:00
Ignotus Peverell
87bfd9aaa4
Mark all crates as publishable 2018-12-07 00:08:15 +00:00
Ignotus Peverell
ef55b35416
Support for genesis block that includes a coinbase (#2079)
* Chain init now handles genesis body properly, related unit test creating the genesis with reward
* Avoid making block body public by adding a with_reward method
* apply_block in all genesis cases works
2018-12-06 15:38:15 -08:00
Yeastplume
7ff323c882
Fix keybase wallet listener call (#2091)
* fix keybase adapter call

* rustfmt
2018-12-06 17:51:53 +00:00
Yeastplume
995c5a38e5
fix for password in listen command (#2090) 2018-12-06 16:26:20 +00:00
Yeastplume
40ccb32be2
Externalise Grin command line definition to .yaml file (#2089)
* move command line definition to .yaml file

* rustfmt
2018-12-06 15:25:05 +00:00
Yeastplume
b8c8840cec
Refactor wallet commands (#2067)
* start wallet command refactoring

* another re-structuring attempt

* rustfmt

* begin splitting up wallet commands

* rustfmt

* clean up wallet arg checking

* rustfmt

* macro for arg parsing

* rustfmt

* factor out init commands

* rustfmt

* move recover to new format

* rustfmt

* add listen command to new format

* rustfmt

* Finish moving commands to new format

* rustfmt

* rustfmt

* propogate errors more cleanly

* rustfmt

* error handling cleanup
2018-12-06 12:04:02 +00:00
Yeastplume
e8a481e3d4
Keybase adapter merge issue fix (#2086)
* fix keybase adapter

* rustfmt
2018-12-05 19:05:13 +00:00
Mike Dallas
f9261310ab Keybase wallet plugin (#2052)
* add keybase wallet plugin

* rustfmt

* cleanup

* rustfmt

* handle null case

* Use two seperate topics for the two parts of the round trip

* rustfmt

* send slate to wallet directly (no need to run http listener anymore)

* rustfmt

* skip some unnecessary api calls

* update docs
2018-12-05 18:37:11 +00:00
Quentin Le Sceller
ed2e1f87aa Fix verify_messages function (#2074)
* Fix verify_messages function
* Do not use wallet secp to verify messages
2018-12-05 10:10:37 -08:00
Quentin Le Sceller
a717dbad96 Fix "post_tx" endpoint (#2077)
* Fix #2073
* Remove logging
2018-12-05 10:08:42 -08:00
Antioch Peverell
02b3bf4b59 utxo_view hash compare (#2082)
* utxo_view validate_input now checks the data in the output MMR
* cleanup apply_input and validate_input
2018-12-05 09:58:40 -08:00
Ignotus Peverell
54a034c40a
Fix txpool double spend edge case (#2081)
Sorting validation on inputs, outputs and kernels now also checks for uniqueness.
2018-12-05 09:44:32 -08:00
Dobby the House Elf
b8124676c7 Move libtx to core 2018-12-05 09:41:26 -08:00
Antioch Peverell
a3523028dc
Sync headers slice (#2085)
* pass slices of headers around, not vec of headers

* rustfmt
2018-12-05 16:50:32 +00:00