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
Antioch Peverell
bf815aa5cd
Readonly pmmr cleanup ( #2083 )
...
* avoid locking txhashset by using a readonly PMMR
* rustfmt
2018-12-05 14:52:53 +00:00
Antioch Peverell
8d8f533b8e
store pmmr cleanup ( #2075 )
...
* introduce DataFile<T> to hide the LEN handling
use slices rather than vec<u8> where possible
* cleanup
* use DataFile<Hash> and not HashFile
* fix core tests
2018-12-05 13:02:24 +00:00
antiochp
6a4278c67e
fix
2018-12-05 12:10:27 +00:00
antiochp
fd41b4918e
rustfmt
2018-12-05 10:28:21 +00:00
antiochp
bd771ecbc5
fix txpool double spend edge case
2018-12-05 10:27:46 +00:00
Quentin Le Sceller
45bfe14a21
Merge pull request #2068 from quentinlesceller/doc
...
DOC: Remove fluff from sendtxargs
2018-12-04 11:21:25 -05:00
Antioch Peverell
919fd84b78
cleanup unnecessary reset_head calls ( #2072 )
2018-12-03 22:27:03 +00:00
Quentin Le Sceller
80b20d3e50
DOC: Remove fluff from sendtxargs
2018-12-03 11:26:31 -05:00
Antioch Peverell
a24d613b05
no need for write lock on txhashset for chain.is_unspent() ( #2066 )
...
* no need for write lock on txhashset
* commit
2018-12-03 09:35:40 +00:00
Antioch Peverell
8bad93c8c9
Reduce amount of clone() going on when applying data to MMRs ( #2046 )
...
* less cloning when pushing to PMMR
* pass a ref to data when applying to the MMR and appending to the backend
* cleanup
* rustfmt
* fixup tests
2018-12-02 19:59:24 +00:00
Quentin Le Sceller
a3072efe70
Fix and update Docker image ( #2059 )
2018-11-30 11:07:34 -05:00
Quentin Le Sceller
dedde70407
Typo
2018-11-30 11:06:27 -05:00
Quentin Le Sceller
798565d02e
Fix and update Docker image
2018-11-30 10:35:24 -05:00
Yeastplume
93a4653e36
Docs, Docs, Docs ( #2058 )
...
* docs
* rustfmt
* doc tweaks
2018-11-30 13:17:42 +00:00
Antioch Peverell
7b07fe99a7
bump 0.4.1 -> 0.4.2 so we can watch the HF ( #2057 )
2018-11-30 11:20:12 +00:00
Antioch Peverell
1dffd4df1e
Fix secondary pow scaling bug ( #2051 )
...
* fix(es) for #1980
* rustfmt
* skip(1) is height dependent on testnet4
rename for clarity
* rustfmt
2018-11-30 11:19:55 +00:00
Ignotus Peverell
35df4ad11e
Various minor store crate cleanups ( #1991 )
...
* Various minor store crate cleanups
* Fix optional IteratingReader counter
* Remove unused vec write functions, with changes to ser they required
2018-11-29 16:04:02 -08:00
Yeastplume
16aa64bfab
Optional Slate Message ( #2047 )
...
* add optional signed message to slate
* rustfmt
2018-11-29 12:49:00 +00:00
Antioch Peverell
b9cfcc777b
cleanup unused import ( #2045 )
2018-11-29 11:03:23 +00:00
Antioch Peverell
f05d3dd920
decouple outputs from output MMR ( #2044 )
2018-11-29 10:17:44 +00:00
Antioch Peverell
8e62130a7a
decouple kernels from the kernel MMR ( #2043 )
2018-11-29 10:01:59 +00:00
Antioch Peverell
8e3a3e1a40
Replace "header by height" index with reads into the header MMR ( #2030 )
...
* replace header_by_height index with reads into the header MMR
* rustfmt
* cleanup
* cleanup chain tests
* fix locate_headers to stop on our max header
* fix the deadlock in comact_blocks_db...
* cleanup and docs/comments
2018-11-29 09:26:24 +00:00
Ignotus Peverell
e356280841
Quick fix for graph_weight used with AR PoW ( #2042 )
2018-11-28 20:33:46 -08:00
Ignotus Peverell
28e0d97e64
Cuckatoo size shift upgrade schedule ( #2024 )
...
* Cuckatoo size shift upgrade schedule
* Move the schedule into graph_weight instead of messing with min edge bits
* Cleanup and fixes now that we have an agreed upon schedule
2018-11-28 14:05:55 -08:00
Antioch Peverell
7dee490962
Two year secondary pow ratio fix ( #2037 )
...
* Tweak (consensus breaking) secondary_pow_ratio
* Look at chain type for sec pow ratio calc (hardfork is t4 only)
2018-11-28 14:05:13 -08:00
Antioch Peverell
60cbcbd96b
Get rid of block hashes cache ( #2018 )
...
check_known_head and check_known_orphans catches majority of cases
2018-11-28 09:48:50 -08:00
Antioch Peverell
add068f10d
ust iterate over the locator... ( #2031 )
2018-11-28 09:46:15 -08:00
Onefox
7354344879
doc: update owner_api post_tx call ( #2035 )
...
* doc: update owner_api post_tx call
* doc: make it even clearer that finalize doesn't broadcasts
2018-11-28 16:52:55 +00:00