yeastplume
4f7e5bb0d9
rustfmt
2019-02-25 12:15:22 +00:00
yeastplume
91c91469a3
merge from master
2019-02-25 12:15:12 +00:00
hashmap
391e311f4c
Don't extract unexpected files from txhashset archive ( #2624 )
...
We verify and remove such files later one, it's safer to ignore them
during unpacking
2019-02-24 22:57:56 -08:00
Ignotus Peverell
8e2b0c7bc8
Bump version to 1.0.2 ( #2623 )
2019-02-24 21:57:56 -08:00
hashmap
e71eca1977
Remove some unwrap/expect in chain crate ( #2621 )
...
* Return Result instead of calling expect in root(). It would kill peer's thread. Perhaps we should ban this peer as malicious.
* Remove some unwraps
2019-02-24 21:57:21 -08:00
Yeastplume
ea4b4fc389
Remove wallet code [1.1.0] ( #2593 )
...
* Bump version to 1.1.0
* remove wallet crate
* wallet extracted + mine_block structs
* remove wallet doc
* remove unnecessary cargo deps
* rustfmt
* remove wallet from travis matrix
* move integration tests into separate crate
* rustfmt
* move integration crate to wallet
2019-02-21 11:57:45 +00:00
Antioch Peverell
2df633b622
log timing for rebuild_index ( #2607 )
2019-02-20 08:16:13 +00:00
Yeastplume
b1c09946cb
Update contributing guidelines ( #2563 )
...
* update contributing guidelines
* add pull request template
2019-02-19 14:29:58 +00:00
Antioch Peverell
48b7421d1e
use fs2 advisory file lock on startup ( #2600 )
2019-02-19 13:23:12 +00:00
Antioch Peverell
5dc01b3de6
debug how long it takes to verify the kernel sums for fast sync ( #2602 )
2019-02-19 13:22:26 +00:00
Jeremy Rubin
eafe730a65
refactor: allocation free cut through algorithms ( #2567 )
2019-02-19 10:02:59 +00:00
Antioch Peverell
23cb9e2514
Map peers by ip only (ignoring port unless on loopback ip) ( #2540 )
...
* wip
* big refactor, regretting doing this now
* PeerAddr everywhere
* cleanup
* fixup server tests
* peers api working for GET, POST is still WIP
* we can now ban/unban peers by ip only (port optional)
2019-02-18 12:15:32 +00:00
Jeremy Rubin
dc6542d82b
chore/docs: eliminate warnings ( #2583 )
...
* chore: replace trim_right with $ sed -i'' 's/trim_right/trim_end/' **/*.rs
* docs: individually document macros to avoid warning, add TODO to make to_edge hygenic
* docs: document impl_array_newtype macros, refactor: move all impl_array_newtype macro traits into impl_array_netype_index
2019-02-15 15:32:37 -08:00
e-max
cbac14c135
fix deadlock between get_status and main loop ( #2556 )
...
* fix deadlock between get_status and main loop
* isolate all shared state in one struct in order to avoid deadlocks
2019-02-15 22:22:53 +01:00
hashmap
ac6ed71abd
Refactor API handlers ( #2572 )
...
Also add some API tests
2019-02-15 22:17:00 +01:00
Jeremy Rubin
aad0e9402a
fix: update Cargo.lock ( #2580 )
2019-02-15 11:12:27 -08:00
hashmap
049a0cd128
Fix compiler warnings ( #2579 )
2019-02-15 10:46:24 -08:00
Gary Yu
2f5fbb3ce8
clean-up the txhashset zip file and temp folder ( #2575 )
...
* clean-up the txhashset zip file and temp folder
* adapt test_txhashset with the new zip_read function
* fix: the wrong folder when cleaning up old zips
2019-02-15 10:36:26 -08:00
Gary Yu
271042c3b0
suppress the debug log for unexpected file report ( #2574 )
...
* supress the debug log for unexpected file report in check_and_remove_files
* revise according to review comments
* rustfmt
2019-02-15 14:33:10 +00:00
Jeremy Rubin
99494c6fa6
get rid of default implementation of Hashed trait for writable things ( #2573 )
2019-02-15 13:41:19 +00:00
Jeremy Rubin
d4540f32a3
refactor: use sort_unstable instead of sort, more efficient with_* methods for TransactionBody ( #2564 )
2019-02-14 11:01:54 +00:00
Jeremy Rubin
41ed10940d
fix: Fix race condition with dandelion_relay peer map and make more semantic ( #2548 )
...
* fix: Fix race condition with dandelion_relay peer map and make more semantic
* Fix bug where we don't actually re-read the dandelion_relay variable after refreshing it
2019-02-13 10:40:31 -08:00
hashmap
5d904250d5
Use failure for Pool and Committed errors ( #2570 )
...
It doesn't play nice with failure-based error management, we have to
throw away an exisiting error and create a new one (failure-based)
2019-02-13 09:33:25 -08:00
Yoni Svechinsky
ee4eed71ea
Feature/slate serialization ( #2534 )
...
* - Add backwards compatability
- Add hex serialization
* rustfmt
* rustfmt
* Windows Compatibility Fixes #1 (#2535 )
* initial changes for windows build and unit/integration tests
* rustfmt
* wallet+store tests
* rustfmt
* fix linux daemonize
* better encapsulate file rename
* rustfmt
* remove daemonize commands
* rustfmt
* remove server start/stop commands
* add ability to drop pmmr backend files explicitly for txhashset unzip
* rustfmt
* fix pmmr tests
* rustfmt
* Windows TUI Fix (#2555 )
* switch pancurses backend to win32
* revert changes to restore test
* compatibility fix + debug messages
* rustfmt
* Add content disposition for OK responses (#2545 )
* Testing http send and fixing accordingly
* add repost method into wallet owner api (#2553 )
* add repost method into wallet owner api
* rustfmt
* Add ability to compare selection strategies (#2516 )
Before tx creation user can estimate fee and locked amount
with different selection strategies by providing `-e` flag for
`wallet send` command.
2019-02-13 13:29:44 +00:00
Jeremy Rubin
563c674700
refactor: reserve capacity in aggregate ( #2568 )
2019-02-13 11:41:29 +01:00
John Tromp
91cca2bf61
test: add CuckAToo31 solution test ( #2552 )
...
add CuckAToo31 solution test
2019-02-12 19:10:17 -05:00
Peter Kalambet
d6936f0ae7
Add more details to wallet TLS setup instruction ( #2565 )
2019-02-13 00:22:41 +01:00
hashmap
65c0b1ecad
Fix handling of IO WouldBlock error in Stratum server ( #2528 )
...
If WouldBlock error happens Stratum server drops part of a message to
read or write. This PR inroduces a worker's buffer to store partially
read message which will be completed next time. For write the existing
util function is used.
Fixes #2524
2019-02-13 00:16:09 +01:00
Ivan Sorokin
aa4f44b79a
fix: wallet coin selection respects max_block_weight ( #2546 )
...
* fix #2510 : wallet coin selection respects max_block_weight
Deprecate "soft" max_outputs limit and introduce "hard" max_outputs
limit based on max_block_weight.
* Fix tests
2019-02-12 15:06:25 -08:00
Ivan Sorokin
1d0c04cf0b
Add ability to compare selection strategies ( #2516 )
...
Before tx creation user can estimate fee and locked amount
with different selection strategies by providing `-e` flag for
`wallet send` command.
2019-02-12 13:45:43 +00:00
Gary Yu
5987bcde19
add repost method into wallet owner api ( #2553 )
...
* add repost method into wallet owner api
* rustfmt
2019-02-12 13:39:43 +00:00
Mark Renten
3b74a9ba3f
Add content disposition for OK responses ( #2545 )
2019-02-11 10:54:21 -08:00
Yeastplume
200f87b8bc
Windows TUI Fix ( #2555 )
...
* switch pancurses backend to win32
* revert changes to restore test
2019-02-10 12:55:35 +00:00
Yeastplume
15c7a270eb
Windows Compatibility Fixes #1 ( #2535 )
...
* initial changes for windows build and unit/integration tests
* rustfmt
* wallet+store tests
* rustfmt
* fix linux daemonize
* better encapsulate file rename
* rustfmt
* remove daemonize commands
* rustfmt
* remove server start/stop commands
* add ability to drop pmmr backend files explicitly for txhashset unzip
* rustfmt
* fix pmmr tests
* rustfmt
2019-02-09 21:14:27 +00:00
e-max
0d36acf01b
introduce an async version of stratum server. ( #2468 )
...
It seems that current approach stops workring after amount of parallel
connection exceeds ~500. This PR introduces an 'async' feature which
enable asyncronius, tokio based implementation of stratum server.
* fix bug with passing current_difficulty in Handler
I passed in Handler current_difficulty as an u64, so it was copied
and all later changes were ignored. In this commit I pass referece on
RwLock with current_difficulty.
* fix crash in build_block
* improve error handling
* print error message on unknown error
* replace original server by tokio based one
* fixes after review
* reduce sleep time in mail loop to 5ms
2019-02-09 11:49:58 -08:00
Ignotus Peverell
d8605a4d51
Generate API secret in wallet --here mode ( #2547 )
2019-02-09 11:03:15 -08:00
Ivan Sorokin
49ca8eba49
fix: false positive wallet tests ( #2539 )
2019-02-08 11:31:36 +00:00
hashmap
a63cfa7138
Allow to have more than min_peers/2 outbound peers ( #2537 )
...
* Allow to have more than min_peers/2 outbound peers
Default value is 8, so we allow only 4 outbound peers, unfortunately if a node is behind NAT it can't get inbound peers and it stucks with 4 peers as maximum.
This PR allows a number of outbound peers to be between min_peers and max_peers/2. Node behind NAT will eventually have just min_peers number of peers.
* Extract into healthy_peers_mix function
2019-02-07 12:26:23 -08:00
hashmap
1f7ea4930e
Merge pull request #2536 from JeremyRubin/reduce-memory-cache
...
refactor: use less memory in verifier_cache by storing zero-sized type instead of bool
2019-02-07 10:01:21 +01:00
Jeremy Rubin
c1045842f5
refactor: use less memory in verifier_cache by storing zero-sized type instead of bool
2019-02-06 14:37:19 -08:00
Rodrigo Ferreira
a735fd1bc6
[docs] Brazilian Portuguese translation of intro.md ( #2522 )
...
* Translate intro.md to portuguese
* Spell-checking and minor improvements to the portuguese translation
2019-02-06 09:41:14 -08:00
Yeastplume
e69ce5ad82
Move slate code from core/libtx to wallet/libwallet ( #2533 )
...
* move slate from core to wallet crate
* rustfmt
2019-02-05 23:02:00 +00:00
hashmap
4eba13a207
Merge pull request #2517 from cyclefortytwo/fix_data_dir_flag
...
fix wallet --data-dir flag
2019-02-05 07:58:12 +01:00
David Burkett
c1d67cbec0
perf: Removing unnecessary array copy. ( #2531 )
2019-02-05 07:54:20 +01:00
Max Lavrenov
c79bbd4efa
fix wallet --data-dir flag
2019-02-02 21:51:10 +01:00
Ignotus Peverell
c41ea4bcf2
Feature/slate version ( #2491 )
...
* Add a slate version field
* Move current slate version to constant
* Change slate version to uint
* Add default 0 incase it's missing (pre-versioning)
2019-02-01 11:17:54 -08:00
hashmap
267c706e2b
Set max number of connections for peer db ( #2506 )
...
Use max_peers value for that if set. By default LMDB limit is 126, which is not enough for less than 200 peers on my node.
2019-02-01 10:51:23 -08:00
marcuswin
987fa033ed
Fix link on BPASE ( #2512 )
2019-02-01 16:47:01 +00:00
Antioch Peverell
19ce9cc28e
bump for v1.0.1 ( #2511 )
2019-02-01 14:43:18 +00:00
Yeastplume
130675e017
Refactor tx lib to be more Sender-Recipient agnostic ( #2502 )
...
* move slate initialisation outside of selection function
* refactor internal tx lib to support recipient (or anyone else) first models
* rustfmt
* rework init api function
* rustfmt
* refactor wallet lock closures to a defined fnmut type
* rustfmt
* comments for clarification
2019-02-01 11:35:37 +00:00