Gary Yu
a8bf2eb126
avoid long display of TxLogEntryType ( #1894 )
2018-10-31 10:31:24 +00:00
Antioch Peverell
bc0128ab88
be careful resetting sync_head ( #1885 )
...
* be careful resetting sync_head
make sure we have the header corresponding to header_head
and that nothing is corrupted from an earlier shutdown
* add logging when resetting heads due to missing header
2018-10-31 10:29:23 +00:00
Gary Yu
5651fa7a8f
add some log to help analysis root cause of #1880 ( #1891 )
2018-10-31 10:23:15 +00:00
Ignotus Peverell
a028748f11
Trivial wallet file operations logging improvement ( #1888 )
2018-10-30 16:12:30 -07:00
Gary Yu
641e7f51f0
Adjust the title format of wallet txs output ( #1882 )
2018-10-30 14:40:53 -07:00
Ignotus Peverell
0b22789865
Cleanup and minor fixes to core after transaction.rs review ( #1854 )
2018-10-30 14:09:56 -07:00
Ignotus Peverell
6f14f4c998
Cleanup and simplify sync (locator, body, etc.) ( #1860 )
...
* Cleanup syncer and sync header (locator)
* Simplify body sync
* Remove duplicate head in locator, add greater case in close_enough
* Various sync small fixes and tuning after testing
* More close_enough tests and related minor fixes
2018-10-30 14:09:24 -07:00
Antioch Peverell
d3b491674a
Cleanup unused archive_mode param ( #1886 )
2018-10-30 11:36:28 -07:00
Quentin Le Sceller
c8afc800ff
Small correction in Node API ( #1881 )
2018-10-30 15:49:45 +01:00
Blade Doyle
2587ef5eb0
Add shares edge_bits to the stratum submit log messages ( #1876 )
2018-10-29 11:27:27 -07:00
Antioch Peverell
17f15b6dae
Adapter check compact archive ( #1873 )
...
* we do want to run compaction for archive nodes (from the adapter)
* rustfmt
2018-10-29 15:03:23 +00:00
Ignotus Peverell
46051ee174
improve minimum difficulty handling ( #1791 )
...
* rename MIN_DIFFICULTY to UNIT_DIFFICULTY; define Difficulty::unit, fix INITIAL_DIFFICULTY
* improve minimum difficulty handling
* replace all Difficulty::one by ::min
* revert secondary scaling default in HeaderInfo; rename scaling_difficulty; refactor difficulty_data_to_vector
2018-10-27 10:37:44 -07:00
eupn
0959bf376c
Avoid stdout and panic logging when TUI is running ( #1837 )
2018-10-27 10:37:03 -07:00
Ignotus Peverell
038e21859a
fix: add missing API in list ( #1847 )
...
Closes #1653
* Replace query parameter values with placeholders
* fix: replace wrong query parameter
* Extent query explanation
* Add missing port parameter
2018-10-27 10:36:25 -07:00
hashmap
456cd0318a
Add missing port parameter
...
Co-Authored-By: haarts <harmaarts@gmail.com>
2018-10-27 10:06:01 +02:00
Ignotus Peverell
bb5392548f
Take 2
2018-10-26 16:28:15 -07:00
Gary Yu
6a788e8a9a
tui: adjust the table column width ( #1848 )
2018-10-27 07:12:54 +08:00
Ignotus Peverell
6f3ae4563a
Small test fix
2018-10-26 16:07:12 -07:00
Ignotus Peverell
1121a38bd5
Logger fix
2018-10-26 15:35:21 -07:00
eupn
495c9ded58
Use temporary file to save bitmaps ( #1840 )
2018-10-26 20:50:26 +02:00
eupn
ee5d6859fc
Translate introduction to russian ( #1846 )
2018-10-26 20:46:20 +02:00
Harm Aarts
930ceccdba
Extent query explaination
2018-10-26 17:18:06 +02:00
Harm Aarts
46c862297d
fix: replace wrong query parameter
2018-10-26 17:09:07 +02:00
Harm Aarts
365814303d
Replace query parameter values with placeholders
2018-10-26 17:07:46 +02:00
Harm Aarts
322552dde4
fix: add missing API in list
...
Closes #1653
2018-10-26 15:28:43 +02:00
Ignotus Peverell
c083312ad4
Improve crate descriptors to be more cargo-friendly ( #1844 )
...
* Update secp dependency to use crates.io version
* Add more details to various Cargo.toml
* Remove use of env variables that aren't reliably provided by cargo
2018-10-25 17:44:50 -07:00
Ignotus Peverell
a42d66efff
Merge branch 'master' into unitdiff
2018-10-25 14:20:41 -07:00
hashmap
b889069722
Make sure the entire buffer was written ( #1842 )
...
We may write just a part of the buffer and we don't check the result, so
write_all is probably what we need here
2018-10-25 10:46:31 -07:00
eupn
58e68a867e
Remove unwrap() and add tx. pool error member to Error enum ( #1839 )
2018-10-25 16:00:39 +02:00
eupn
711fad6c24
Remove TODO for counting of bytes that was already done ( #1838 )
2018-10-25 15:57:53 +02:00
hashmap
ab7a59b1c2
Pool crate cleanup ( #1835 )
...
* Refactor retrieve_transaction
* Cleanup transaction_pool
2018-10-25 14:21:36 +02:00
Antioch Peverell
4050f7fccb
handle re-orgs in transaction_pool ( #1829 )
...
* use reorg_cache in transaction_pool to safely handle txs during a re-org
* rustfmt
* comments
2018-10-24 17:57:31 +01:00
eupn
3d74d7fe85
Fix path to log file in panic message ( #1815 )
2018-10-24 09:13:57 -07:00
Quentin Le Sceller
c343c65051
Remove fluff in SendTXArgs ( #1825 )
2018-10-24 12:10:40 +02:00
Yeastplume
029450a5ce
remove file wallet ( #1824 )
2018-10-24 11:03:50 +01:00
Antioch Peverell
3d59cce7c5
rework pool tx validation logic a bit ( #1826 )
2018-10-24 10:55:42 +01:00
hashmap
3efa7bdac9
Small style changes in core crate ( #1816 )
2018-10-23 21:09:16 +02:00
Antioch Peverell
a433725b5d
Actually cleanup old blocks if archive_mode=false ( #1814 )
...
* actually cleanup old blocks if not in archive mode
* rustfmt
2018-10-23 13:59:43 +01:00
Antioch Peverell
38cbd6eafb
full node == fast sync (no full archival guarantees) ( #1809 )
...
* wip - fast sync only
* wip
* cleanup
* cleanup
* cleanup comments in default config file around capabilities
* fixup p2p tests
2018-10-23 13:01:19 +01:00
Ignotus Peverell
a4a4c5610f
Cleanup sync loop ( #1811 )
...
* Add a struct to encapsulate common references and avoid passing
them around on every function.
* Consolidate `skip_sync_wait` and `awaiting_peers` in an
additional sync status.
* New awaiting peer status is initial too
2018-10-22 22:50:13 -07:00
Ignotus Peverell
7f60e2076d
Default last connected to migrate older db ( #1812 )
...
Fixes backward compatibility issue with #1794
2018-10-22 18:15:10 -07:00
jaspervdm
64d584c2c6
Fix scaling diff in blocks for mining ( #1796 )
2018-10-22 14:34:23 -07:00
Ignotus Peverell
f4eb116fbf
Minor update to seed module documentation
2018-10-22 14:03:46 -07:00
eupn
8f42f7306c
feat: remove expired peers from the storage ( #1794 )
...
* Initial expired peers removal
* Stop expired peers
* Simplify peer removal and remove only Defunct peers
* Make seed to check for expired peers every hour
* Get rid of unused vector of peers to remove
* Make peer deletion predicate closure immutable
2018-10-22 13:59:40 -07:00
Quentin Le Sceller
5f2e8db092
Fix shift by 1 block in TUI ( #1780 ) ( #1810 )
...
* Fix shift by 1 block in TUI (#1780 )
* Only use graph_weight
* Fix shift by 1 in block
* Remove debug logging
2018-10-22 10:44:14 -07:00
Quentin Le Sceller
d11088c987
Fix build error ( #1803 )
...
* Fix build error
* Cargo Lock
2018-10-21 23:56:42 +02:00
eupn
1195071f5b
Replace logging backend to log4rs and add log rotation ( #1789 )
...
* Replace logging backend to flexi-logger and add log rotation
* Changed flexi_logger to log4rs
* Disable logging level filtering in Root logger
* Support different logging levels for file and stdout
* Don't log messages from modules other than Grin-related
* Fix formatting
* Place backed up compressed log copies into log file directory
* Increase default log file size to 16 MiB
* Add comment to config file on log_max_size option
2018-10-21 13:30:56 -07:00
Quentin Le Sceller
0852b0c4cf
Expose post_tx in OwnerAPI Post ( #1795 )
...
* Add POST post_tx in wallet_owner_api
* Add docs for post_tx
2018-10-21 13:26:35 -07:00
Gary Yu
0d06561a91
replace stdlib RwLock and Mutex with parking_lot ( #1793 )
...
* replace all stdlib RwLock with parking_lot RwLock
* replace stdlib Mutex with parking_lot Mutex
* rustfmt
2018-10-20 08:13:07 +08:00
John Tromp
1cfc474817
forgot to take out assert
2018-10-19 22:21:13 +02:00