Ignotus Peverell
df671a8adb
Remove bit about ASIC resistant mining algo
2018-12-19 14:42:54 -08:00
Ignotus Peverell
18feae17dc
Fix domain for my email address
2018-12-19 12:11:42 -08:00
hashmap
0d44c5405f
Make tx weight safer ( #2180 )
...
Currently it fails on fuzz tests. Also type conversion to i32 is
dangerous per se
2018-12-18 11:19:19 -08:00
Blade Doyle
590ea33484
Enhance share rejection messages to include nonce and hash ( #2173 )
2018-12-18 11:12:05 +00:00
Yeastplume
fcec70d1e3
Fix for #2169 ( #2170 )
...
* return all matching tx entries from retrieve_txs
* rustfmt
2018-12-17 10:40:48 +00:00
Gary Yu
ea1c3a9d4d
fix get_locator which loop the whole headers ( #2159 )
2018-12-17 07:29:49 +08:00
Antioch Peverell
c188b60a38
readonly verify_coinbase_maturity ( #2164 )
...
* move verify_coinbase_maturity into utxo_view
no longer need a write lock on txhashset
* rustfmt
2018-12-16 09:26:39 +00:00
Antioch Peverell
a50dcbfaa5
less txhashset locking ( #2163 )
...
* less txhashset locking
* rework server stats a bit
2018-12-16 09:26:17 +00:00
Antioch Peverell
9a4895c86a
take lock once in get_header_for_output ( #2161 )
2018-12-15 20:44:33 +00:00
Quentin Le Sceller
d6131f2716
Merge pull request #2162 from kargakis/wallet-docs
...
Wallet docs markdown fixes
2018-12-15 15:13:38 -05:00
Michalis Kargakis
85074f8356
Wallet docs markdown fixes
2018-12-15 20:43:53 +01:00
Gary Yu
197d4f9575
TUI mining server status: add blocks found statistics ( #2151 )
...
* TUI mining server status: add solutions found statistics
* rustfmt
* modify 'solutions found' as 'blocks found'
2018-12-15 10:10:33 +08:00
Yeastplume
8e678058f1
[WIP] Store completed transactions in files instead of DB ( #2148 )
...
Store completed transactions in files instead of DB
2018-12-14 16:24:53 +00:00
Gary Yu
32a7c309e7
TUI basis status text align ( #2150 )
...
* tui basic status text align
* rustfmt
2018-12-14 22:38:05 +08:00
Gary Yu
e6bc6e060e
fix travis-ci test suite for wallet_command_line test ( #2155 )
2018-12-14 22:37:45 +08:00
Antioch Peverell
7ae22eff2b
add hash() to tip for safety ( #2145 )
2018-12-13 13:44:50 +00:00
Yeastplume
df62fd6d95
Coin selection with small amounts fix ( #2144 )
...
* coin selection fix for sending with an amount <= smallest output
* rustfmt
2018-12-13 11:19:46 +00:00
Antioch Peverell
793e3843f0
HeaderEntry for storing subset of header info in the header MMR ( #2137 )
...
* HeaderEntry for storing subset of header info in the header MMR
* cleanup
* cleanup
2018-12-13 09:57:24 +00:00
Antioch Peverell
675edb4a19
TUI Mining Screen (block hash and block height) ( #2142 )
...
* add block hash to tui mining diff screen
include current header in there also
* rework the mining screen on the tui
show block hash as well as block height
fix the "off by one" error
2018-12-12 11:41:42 -08:00
Antioch Peverell
305b36dcce
replace is_mainnet() with !is_testnet() ( #2125 )
...
* replace is_mainnet() with !is_testnet()
makes testing "mainnet" code significantly easier (its the default)
* fix next_target_adjustment test based on tromp analysis
* rustfmt
* cleanup wallet db files and add to gitignore
* fix
2018-12-12 16:49:35 +00:00
Mark Renten
ed9c1acec1
offline build not possible right now closes #2139 ( #2141 )
...
* remove (almost) all unwrap calls
* replace with ? operator
* build script will now work offline and in many other scenarios where the web wallet may not be downloaded
2018-12-12 15:33:30 +00:00
Yeastplume
901c665ba7
Wallet tests, bug fixes ( #2138 )
...
* More tests for smallest selection, resulting bug fixes, remove unneeded TXLogEntryTypes
* rustfmt
2018-12-12 13:38:29 +00:00
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
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
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