Valentine Wallace
82f5a1cbda
Add a sample module FilesystemPersister.
...
Intended to be a cross-platform implementation of the
channelmonitor::Persist trait.
This adds a new lightning-persister crate, that uses the
newly exposed lightning crate's test utilities.
Notably, this crate is pretty small right now. However, due to
future plans to add more data persistence (e.g. persisting the
ChannelManager, etc) and a desire to avoid pulling in filesystem
usage into the core lightning package, it is best for it to be
separated out.
Note: Windows necessitates the use of OpenOptions with the `write`
permission enabled to `sync_all` on a newly opened channel's
data file.
2020-10-16 13:41:36 -04:00
Matt Corallo
e808d50b9d
Fix passing -O1 to build from cargo test
...
In 9e03087d6a
we started setting
`opt-level` only on profile.test and not profile.dev. When that
commit was authored I tested only that rustc was being called with
opt-level set in its flags, not that the resulted run ran at the
speed I expected. It seems profile.test isn't applied properly to
dependencies or so, resulting in tests running much slower than
they do at profile.dev.opt-level=1.
2020-10-05 14:24:41 -04:00
Matt Corallo
dbf4f58987
Remove the bindings crate from the root namespace to let it break
...
Until we get the bindings generation process super stable, let the
bindings get stale with respect to the main repo while still letting
`cargo check` pass.
2020-09-13 20:58:50 -04:00
Matt Corallo
3c12b0d0af
Specify panic = abort in profiles for lightning-c-bindings
2020-09-10 22:03:32 -04:00
Matt Corallo
9e03087d6a
Apply -O1 only to tests, not all dev (which is used for bindings)
2020-09-10 22:03:32 -04:00
Matt Corallo
af9d1cf776
LTO in release mode by default, which is really critical for C libs
2020-09-10 22:03:32 -04:00
Matt Corallo
76eaa61725
Update the root Cargo.toml to point to the new subcrate
2020-09-10 22:03:32 -04:00
Matt Corallo
a62e96bcd9
Move test profile to crate root, so it has effect again
2019-11-28 01:21:41 -05:00
RJ Rybarczyk
88fef649b1
Use workspaces to separate crates
2019-11-15 02:44:30 +00:00
Elichai Turkel
f4e8974c16
Updated bitcoin, bitcoin_hashes and secp256k1 dependencies
2019-08-24 11:04:29 -04:00
Matt Corallo
bf7eeb1ec7
Make rand a dev-dep by having the user randomize HTLC forward delay
...
This removes the last calls to rand outside of test and moves the
dep to a dev-dependency, dropping our fuzz rng wrapper in the
process.
2019-07-23 14:29:56 -04:00
Matt Corallo
7118effbf2
Bump version to 0.0.9 to get current master fixes uploaded.
2019-06-01 07:48:33 -04:00
Matt Corallo
882f7307c8
Bump rust-bitcoin dep to 0.18
2019-06-01 07:40:21 -04:00
Tamas Blummer
02b541607b
migration to rust-bitcoin 0.17
...
typedef Sha256dHash with bitcoin_hashes::sha256d::Hash
SecretKey -> PrivateKey.key
assume compressed public keys
2019-03-07 18:50:02 +01:00
Matt Corallo
cfcecdbf11
Bump version to 0.0.8
2019-01-25 12:07:16 -05:00
Matt Corallo
db07d6e30e
Bump bitcoin_hashes to 0.3
2019-01-24 22:29:10 -05:00
Matt Corallo
12d25576c1
Upgrade to secp256k1 v12, bitcoin v16, and crates bitcoin_hashes
2019-01-22 13:49:15 -05:00
Matt Corallo
7ea39a13b2
Use bitcoin_hashes' fixed_time_eq, removing the rust-crypto dep
2018-12-19 20:02:36 -05:00
Matt Corallo
f1e400f142
Switch Sha256 to using bitcoin_hashes and our own HKDF
2018-12-19 17:13:25 -05:00
Matt Corallo
bde921ea20
Bump to 0.0.7 for API rev
2018-11-21 16:18:18 -05:00
Steven Roose
7ff7561f2d
Update to rust-bitcoin v0.15
2018-11-14 11:43:54 +00:00
Matt Corallo
cfff650261
Bump version to 0.0.6
2018-10-27 09:58:10 -04:00
Matt Corallo
d2a6ca529f
Bump version to 0.0.5 to get new docs out
2018-09-20 10:57:18 -04:00
Matt Corallo
9d69bc9a48
Switch to -O1 in dev as we have long-running tests and O1 is cheap
2018-09-20 10:57:01 -04:00
Matt Corallo
11e5975523
Update to rust-secp256k1 v0.11 and rust-bitcoin v0.14
2018-08-23 14:52:43 -04:00
Antoine Riard
0029f04fce
Logging interface
...
Implement error, warn, info, debug and trace macros, internally calling
an instance of Logger, and passing it to every main structures
Build-time or client-side filtering.
Issue #54
2018-08-17 00:01:15 +00:00
Savil Srivastava
07d7b395e6
change hex version to 0.3, and leave out the minor bumps
2018-07-30 17:01:57 -07:00
Matt Corallo
fe9bb1d970
Merge pull request #84 from savil/sort_outputs
...
[RFC][Tx Sort] Implement sorting of inputs
2018-07-26 11:54:17 -04:00
Savil Srivastava
da09c4d7f3
adding BIP69 test-cases
2018-07-25 18:33:03 -07:00
Matt Corallo
84cb40f859
Bump version for API overhauls, update deps and docs
2018-07-19 23:06:36 -04:00
Matt Corallo
f462d8ac70
fuzztarget sha -> XOR, crates secp256k1
2018-06-04 20:02:07 -04:00
Yuntai Kyong
7822af8bd1
Update dependency on secp256k1 pointing to https://github.com/rust-bitcoin/rust-secp256k1
2018-05-12 14:30:26 +09:00
Matt Corallo
a31d67474c
Fix repo link in Cargo
2018-04-26 17:35:09 -04:00
Matt Corallo
c564f9fd59
Bump version for API changes.
2018-04-26 11:40:48 -04:00
Matt Corallo
1ec9c3aa4b
Provide fallback for crypto's fixed_time_eq on non-x86/arm targets
2018-04-16 20:35:21 -04:00
Matt Corallo
00c6f42452
Use libbitcoinconsensus to check tx validity in some tests
2018-04-16 20:35:19 -04:00
Matt Corallo
1ae603cc3d
Switch back to crates.io rust-bitcoin for 0.13 release
2018-04-16 20:35:03 -04:00
Matt Corallo
187ca8c0c8
Make Channel non-public except in fuzztarget mode, bump version
2018-04-02 18:07:03 -04:00
Matt Corallo
890e3cb165
Update for new rust-bitcoin API, avoid some duplicate hashing
2018-04-02 18:06:59 -04:00
Matt Corallo
1d2774dd64
Add some fuzz targets.
...
Sadly none of them are really any good without some hand-holding to
generate good input data, and unless sha256 gets stubbed out I'm
not sure they're gonna get good without a symbolic execution fuzzer
2018-03-23 13:16:24 -04:00
Matt Corallo
c65bffe568
Add fuzztarget feature, bump bitcoin/secp256k1
2018-03-23 13:16:24 -04:00
Tamas Blummer
fbe4f7a442
Split out BroadcastInterface, ChainWatchInterface monitors re-enter from called listeners
2018-03-19 16:14:19 -04:00
Tamas Blummer
f200f26fe2
use new bitcoin-chain module extracted from bitcoin
2018-03-10 15:12:19 +01:00
Matt Corallo
70e01cbd5a
Unify license with rust-bitcoin-spv
2018-03-05 15:09:44 -05:00
Matt Corallo
770740dbcc
Update deps, including significant dep reduction in rust-bitcoin!
2018-02-21 11:35:43 -05:00
Matt Corallo
6185a28190
initial checkin
2018-02-16 18:09:48 -05:00