Commit Graph

2292 Commits

Author SHA1 Message Date
jaspervdm cf128eb220 Fix rare panic in TUI (#3294) 2020-04-15 10:19:11 -04:00
Quentin Le Sceller e76dda6676 Use latest hosted agent for CI (#3278)
* Use latest hosted agent for CI
2020-04-14 09:25:10 -04:00
MCM-Mike d7e6ac6cfe Update seed.rs (#3282)
added mainnet-seed.grinnode.live
2020-04-13 15:38:39 -04:00
Yeastplume b2609b7214 Update rust-secp256k1 to v0.7.9 (#3293) 2020-04-10 18:44:02 +01:00
Antioch Peverell bab9f41343 go back to storing header_head in the db (#3268)
* go back to storing header_head in the db

* simplify and cleanup
2020-04-10 16:12:53 +01:00
goyle 34ff103bb0 Update link to podcast featuring tromp (#3283) 2020-03-30 11:10:42 -05:00
Antioch Peverell e49eecae5c Cleanup path handling with AsRef<Path> (#3284)
* AsRef<Path>

* bump
2020-03-30 11:35:21 +01:00
jaspervdm 7385e8ce7f Update API docs (#3277) 2020-03-28 12:53:20 +01:00
Yeastplume d036332028 Include new libsecp256k1 version (#3279) 2020-03-26 16:12:41 +00:00
jaspervdm 2fe0869321 Use croaring-mw with 'compat' feature (#3274) 2020-03-23 21:12:58 +01:00
jaspervdm 6bdf31f23d Remove unused code in message handling (#3269) 2020-03-13 12:50:35 +01:00
Antioch Peverell 3bbf60ee92 simplify when block_sums and spent_index are added to the db (#3253)
* simplify when block_sums and spent_index are added to the db

* fix pool tests

* cleanup
2020-03-10 14:58:32 +00:00
Antioch Peverell 8ca381a9c2 cleanup util::from_hex() (#3265)
* cleanup our from_hex()

* fix keychain tests

* add test coverage for empty hex string
2020-03-10 10:36:18 +00:00
Yeastplume ee5fe1ac63 Use smaller LMDB Allocation Size in non-production modes (#3264)
* add option to override lmdb allocation size in testing

* simplify to use global::is_production_mode
2020-03-10 09:30:12 +00:00
Yeastplume 31bd2d923a Add better LMDB error output (#3263) 2020-03-09 14:04:06 +01:00
jaspervdm d5b523248b API: don't error on missing output (#3256)
* Node API: don't error on missing output

* Propagate errors from get_output*

* Rename is_unspent and small refactor

* Forgot to rename function in tests

* Change Batch get_output_pos_height type signature
2020-03-04 23:42:10 +01:00
Antioch Peverell 5f5b1d2f13 no need to rehash with index to compare output with input spending it (#3260)
* no need to rehash with index to compare output with input spending it

* compare output identifier when checking is_unspent()

* output identifier from cleanup
2020-03-04 08:36:33 +00:00
Antioch Peverell 2527006e8d keep output and rangeproof mmrs together (#3254) 2020-03-03 15:32:01 +00:00
Yeastplume b73fc0bb9b Version bump for next development release 2020-03-02 12:27:16 +00:00
Yeastplume 533da2d192 version bump for 3.1.0 release (#3258) 2020-03-02 10:38:56 +00:00
Antioch Peverell ef755a5c49 bump to 3.1.0-beta.3 (#3252) 2020-02-28 12:42:08 +00:00
Antioch Peverell bcf0e0b4eb we need to be lenient when deleting entries from the output_pos index (may be missing) (#3251) 2020-02-28 12:41:40 +00:00
Antioch Peverell 5071084445 bump version to 3.1.0-beta.2 (#3244) 2020-02-27 09:35:44 +00:00
Antioch Peverell f2380585a7 explicit read_timeout and write_timeout during hand/shake (#3249)
* explicit read_timeout and write_timeout during hand/shake

* longer timeout for reading Hand and Shake messages to give peer time to send it over
2020-02-27 07:49:38 +00:00
Antioch Peverell 5cb0aac55e only apply full rewind to bitmap, not per block (#3246) 2020-02-26 19:15:13 +00:00
Antioch Peverell 8a15007c8a ignore error from set_read_timeout (#3243) 2020-02-25 20:23:32 +00:00
Antioch Peverell 6855241a56 handle mpsc channel disconnect from peer_write thread (#3241)
* handle mpsc channel disconnect from peer_write thread
also actually shutdown the writer when we say we are going to

* fix - we need to break here
2020-02-25 19:15:27 +00:00
jaspervdm 6bdeefd27e Fix warnings (#3240) 2020-02-25 18:33:50 +01:00
Jakob Abfalter bcf3e4e4e4 [Docs] Rangeproof output documentation (#3234)
* [Docs] Added output byte documentation of the rangeproofs

* [Doc] Adjusted wording on bulletproof byte documentation
2020-02-25 18:20:55 +01:00
Antioch Peverell 3790b2cba5 cleanup unused import (#3238) 2020-02-24 16:08:16 +01:00
Antioch Peverell cb2b909090 Block input bitmap rework (#3236)
* first pass at rewind_single_block
and reworking rewind to simply iterate over blocks, rewinding each incrementally

* commit

* commit

* cleanup

* add test coverage for output_pos index transactional semantics during rewind

* commit

* do not store commitments in spent_index
just use the order of the inputs in the block

* compare key with commitment when cleaning output_pos index

* remove unused OutputPos struct
2020-02-24 09:48:51 +00:00
Quentin Le Sceller ef853ae469 Update croaring (#3233) 2020-02-21 15:24:48 +00:00
jaspervdm 6bca34c6a8 Update hyper/tokio/futures dependencies (#3214)
* Update hyper, tokio, futures versions

* Update stratum server

* Update API

* Update webhooks
2020-02-18 23:45:27 +01:00
Antioch Peverell 2d4a2c30ce Cleanup output pos idx (#3227)
* cleanup legacy output pos index
cleanup unused migration code
consolidate use of output_pos index

* refactor to cleanup duplicate code
2020-02-14 20:42:07 +00:00
Antioch Peverell 3c040b96e1 account for the utxo rewind when attempting to fix a bad chain init (#3229) 2020-02-14 15:03:45 +00:00
Joseph Goulden 0d2e58e90e feat: allow DNS names in peers/seeds list and resolve them (#3125)
* feat: allow DNS names in peers/seeds list and resolve them

* tests: add mod for peer tests

* refactor: rename some variables

* chore: use Serde desrialize to resolve DNS names into PeerAddrs

* fix: compile

* fix: add back code to remove duplicate ip addresses from resolved DNS seeds
2020-02-14 14:58:57 +00:00
Quentin Le Sceller 053415ddf8 Convert ipv4-mapped ipv6 when accepting peer (#3225) 2020-02-14 09:38:02 -05:00
Quentin Le Sceller b400a4b1cf Attempt to read ipv4-mapped ipv6 to ipv4 if possible (#3221) 2020-02-14 09:37:14 -05:00
Antioch Peverell 65e4f7efe0 brew uninstall llvm in macos vm for azure pipelines (#3232)
* mess around with llvm versions

* clang --version
2020-02-14 13:52:14 +00:00
Antioch Peverell 4c081b8f73 use backend file when compacting the output pos index (#3226) 2020-02-13 10:26:56 +00:00
Quentin Le Sceller 04a0123752 Less cloning and additional pattern simplifications (#3223)
* API Cleanup

* Chain Cleanup

* Core Cleanup

* Keychain Cleanup

* P2P Cleanup

* Pool Cleanup

* Store Cleanup

* Util Cleanup

* Cleanup clone_from_slice

* Address jasper comments
2020-02-12 19:35:33 +01:00
Quentin Le Sceller c4e69717ab Less cloning and pattern simplifications (#3216)
* Less cloning and pattern simplifications

* Revert inclusive range and remove unecessary Error:From
2020-02-05 11:02:07 -05:00
Ramin Soltanzadeh a41965e024 Update intro.md (#2975)
* Update intro.md

Significant clarifications, especially in the paragraph where excess value is introduced and the section about kernel offsets.

* fix and clarify section about kernel offsets

"Splitting" the blinding factor into *k1* and *k2* is unnecessarily confusing I think. The excess and the offset are really two arbitrary numbers without any mathematical relation to each other. I think I rephrased the section as well as I could without sacrificing any correctness for the sake of simplicity (which I think would be more confusing than helpful).

* do the same fixes for the Swedish version

* small fix regarding aggregation

Transactions are not aggregated by non-mining nodes as well. Removed the part about miners.

Co-authored-by: Quentin Le Sceller <q.lesceller@gmail.com>
2020-02-04 15:50:06 -05:00
lehnberg 6c528654df Update build.md to remove min version of Rust (#3219)
As per https://github.com/mimblewimble/grin-pm/blob/master/notes/20200121-meeting-development.md#decision-no-min-rust-version
2020-02-04 15:46:16 -05:00
Quentin Le Sceller ba129b242c CI: Remove Rust installation for macOS (#3220) 2020-02-04 15:40:37 -05:00
Quentin Le Sceller ee25d0dfc9 Pass SwitchCommitment by value instead of reference (#3217) 2020-02-04 08:52:00 -05:00
Quentin Le Sceller 5c959bc733 Replace Gitter by Keybase in README.MD (#3215) 2020-01-30 17:08:20 -05:00
Antioch Peverell 5e1fe44bed remove writeable impl [u8; 4] (#3132) 2020-01-29 14:56:06 +00:00
WhoNeedszZz b01ab44475 Resolve JSON RPC 2.0 non-compliance (#3213)
Currently, the JSON RPC requests and responses are not compliant with the spec as the server only accepts strings.
This change is *non-breaking* as it simply adds the ability to understand integers as expected.
Any old code continuing to only send string requests will continue to work as before.

Unit tests are included to ensure (de)serialization works on both strings and integers.
2020-01-29 09:44:33 -05:00
François Garillot dcdbdd4bcc Some simple Option / Result / iterator pattern simplifications (#3205) 2020-01-29 14:20:57 +00:00