Commit Graph

557 Commits

Author SHA1 Message Date
Yeastplume 1dd9a87452 0 the 0 that should have been a 1 (#2711) 2019-03-26 15:32:54 +00:00
Yeastplume 9fab8ee3fb [1.1.0] CbData Serialization change + reward output test mode (#2710)
* cb serialization and coinbase test mode

* rustfmt
2019-03-26 12:26:03 +00:00
Yeastplume 2e72ed91f3 fix option_sig_serde (#2699) 2019-03-21 15:45:10 +00:00
Yeastplume 6949a0d341 add string_or_u64 serialization (#2698) 2019-03-21 14:06:30 +00:00
Yeastplume bd6824ca4c allow specific nonce in aggsig sign single call (#2696) 2019-03-21 11:44:55 +00:00
hashmap 16487a3eb7 [1.1.0] Bring fuzz test back (#2675)
Corpus generation was updated and simplified, plus small updates
2019-03-15 15:32:14 +01:00
Yeastplume c3496b45dd [1.1.0] Additional secp primitive serialization changes (#2669)
* serialize sig, not just option(sig)

* rustfmt

* serialise pubkeys in short form
2019-03-12 10:45:19 +00:00
Yeastplume 1b3eaba302 [1.1.0] Serialise sigs as raw data, not DER encoded (#2668)
* serialise signatures as raw data

* rustfmt
2019-03-11 11:56:23 +00:00
Andrew Dirksen f30e59adc5 make error types serializable (#2659) 2019-03-07 19:08:29 +00:00
Yeastplume 557e77b218 comment out fuzz tests for now, remove wallet crate reference (#2635) 2019-02-27 11:12:09 +00:00
Mike Dallas d560a36dd6 Event callbacks for Network and Chain Events (#2598)
* Add hooks for network and chain events. Move logging to an EventLogger
* implement webhooks
* fix failing test
* remove unnecessary 'pub'
* add some metadata to the json payload
* avoid unecessary init
* resolve conflicts
2019-02-26 12:24:50 -08:00
yeastplume 4f7e5bb0d9 rustfmt 2019-02-25 12:15:22 +00:00
yeastplume 91c91469a3 merge from master 2019-02-25 12:15:12 +00: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
Jeremy Rubin eafe730a65 refactor: allocation free cut through algorithms (#2567) 2019-02-19 10:02:59 +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
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
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
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
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
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
David Burkett c1d67cbec0 perf: Removing unnecessary array copy. (#2531) 2019-02-05 07:54:20 +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
Antioch Peverell 19ce9cc28e bump for v1.0.1 (#2511) 2019-02-01 14:43:18 +00:00
Antioch Peverell a82e2a0126 Rework "bucket transactions" logic (buckets are now weight limited) (#2487)
* rework bucket txs

* introduce max_block_weight to global (based on chain_type)
not yet in use anywhere...

* now using global::max_block_weight() everywhere

* testing max_block_weight needs to be big enough to cover existing chain tests...

* add some test coverage for prepare mineable transactions at the block weight limit
introduce AsLimitedTx{max_weight} so we can build artifically small blocks (per mining config)

* cleanup

* default_mineable_max_weight is just the default max_block_weight
we do not need to account for coinbase reward here (tx vs block)

* 75 change outputs in a test is not valid now that we have a low block weight limit...
2019-02-01 10:44:04 +00:00
Yoni 1f7d3c6dc7 - Change slate version to uint
- Add default 0 incase it's missing (pre-versioning)
2019-01-31 16:25:57 +02:00
Yoni e505726d73 Merge remote-tracking branch 'upstream/master' into feature/slate-version 2019-01-31 15:52:39 +02:00
Yeastplume 0c851c5140 Save slate participant messages in database (#2441)
* Save and display optional slate messages

* rustfmt

* fixes and test updates

* rustfmt

* output json

* rustfmt

* add better serialisation of slate message, rename to secp_ser, add tests for serialization functions

* rustfmt

* max length for message enforced by API

* rustfmt
2019-01-31 11:55:34 +00:00
Antioch Peverell 422db82667 no is_mainnet() to keep tests close to mainnet (#2496) 2019-01-31 09:23:19 +00:00
Yoni 569d7a3220 Move current slate version to constant 2019-01-30 10:26:23 +02:00
Yoni 99dda19f5e rustfmt 2019-01-30 10:19:52 +02:00
Yoni a33502c108 Add a slate version field 2019-01-30 10:19:41 +02:00
Antioch Peverell d1de3b0d6e default our chain type to mainnet (already doing this via config file) (#2485) 2019-01-29 20:09:30 -08:00
Antioch Peverell c8fd0575ed Pool tx weight verification (#2466) 2019-01-25 12:48:15 -08:00
hashmap 2e22e2c6ec Merge pull request #2465 from sesam/catchingClippy
Catching clippy
2019-01-24 22:00:34 +01:00
Yoni Svechinsky a523f82820 Add hex serialization functions (#2436)
* Change slate seralization to hex

* rustfmt

* Comment out serde directives
Move serialization functions into a seperate module

* Remove commented code
2019-01-24 13:18:13 +00:00
Simon B 0d606c0356 clippy says: fn new should usually return self <-- I picked ignore, since this is test code waiting to be moved. And likely also renamed from "new" to maybe "new_mock_block" to make sure nobody finds it and wants to use it to build a non-test block 2019-01-24 01:59:20 +01:00
Simon B 9335f11c6c clippy says: unreadable literal, please use a lot of _ everywhere (!!!) or ignore <-- picking ignore 2019-01-24 01:56:04 +01:00
Simon B dda8497d54 clippy says: avoid needless "1 *"
clippy says: make operator precedence explicit
2019-01-24 01:53:36 +01:00
Antioch Peverell f8aab05d76 Use weight_as_block for quick weight check (#2443) 2019-01-22 08:55:36 -08:00
eupn 8badb58665 Cleanup genesis.rs a bit (#2390) 2019-01-15 18:37:17 -08:00
Ignotus Peverell e7485ab5f1 Version bump to 1.0.0 2019-01-15 16:24:29 +00:00
Ignotus Peverell 8fc489a808 Finalized mainnet genesis block 2019-01-15 15:27:51 +00:00
Ignotus Peverell 6bb611a2f0 Fix spurious change added by git merge 2019-01-14 20:19:17 +00:00