Jack May
5f565c92c9
cargo incremental builds breaks Rust BPF, locally disable it ( #2674 )
2019-02-06 13:59:10 -08:00
Greg Fitzgerald
549f9676f1
Allow validators to accumulate credits for voting
2019-02-05 14:24:49 -07:00
dependabot[bot]
85333c5d62
Bump serde_derive from 1.0.85 to 1.0.87
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.85 to 1.0.87.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.85...v1.0.87 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-04 17:07:01 -07:00
dependabot[bot]
32f19c5c19
Bump serde from 1.0.85 to 1.0.87
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.85 to 1.0.87.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.85...v1.0.87 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-04 09:08:09 -07:00
Greg Fitzgerald
511d8275d6
Document current vote program semantics
...
And add a new 'staker_id' VoteState member variable to offer a path to
work our way out. Update leader scheduler to use staker_id, but
continue setting it to 'from_id' for the moment.
No functional changes here.
2019-02-01 16:03:46 -08:00
Greg Fitzgerald
0a9226ec8e
Use voting helper
2019-02-01 16:03:46 -08:00
Greg Fitzgerald
9c07a8c26a
VoteProgram -> VoteState
2019-02-01 16:03:46 -08:00
Greg Fitzgerald
6058bfb687
Simplify voting helpers
2019-02-01 16:03:46 -08:00
Michael Vines
d62c9ac309
Create program/ crate avoid / crate dependency on bpfloader
...
The bpfloader crate was triggering cargo to perform excessive rebuilds
of in-workspace dependencies. Unclear why exactly, but seems related to
the special dual crate-type employed by bpfloader.
2019-02-01 12:42:46 -08:00
Greg Fitzgerald
dad0bfe447
Replace transaction traits with structs
...
Also:
* SystemTransaction::new -> new_account
* SystemTransaction::new_create -> new_program_account
2019-02-01 11:38:25 -08:00
Michael Vines
bfaf5634a1
.unwrap() in tests instead of assert!()ing .is_ok() for a better failure message
2019-01-28 16:10:32 -08:00
Jack May
9abc500269
Fix BPF C tests and run as part of CI ( #2540 )
2019-01-24 12:15:37 -08:00
dependabot[bot]
a7503050c2
Bump libc from 0.2.47 to 0.2.48
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.47 to 0.2.48.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.47...0.2.48 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-23 18:22:05 -08:00
Jack May
a0bc8b8af3
BPF programs can support up to 5 arguments ( #2528 )
2019-01-23 09:55:08 -08:00
dependabot[bot]
b1109b813e
Bump byteorder from 1.3.0 to 1.3.1
...
Bumps [byteorder](https://github.com/BurntSushi/byteorder ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/BurntSushi/byteorder/releases )
- [Changelog](https://github.com/BurntSushi/byteorder/blob/master/CHANGELOG.md )
- [Commits](https://github.com/BurntSushi/byteorder/compare/1.3.0...1.3.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-22 09:58:48 -08:00
Greg Fitzgerald
d666ebc558
Add tests for vote_program
2019-01-21 18:05:52 -07:00
dependabot[bot]
b0149a54d8
Bump serde_derive from 1.0.84 to 1.0.85
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.84 to 1.0.85.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.84...v1.0.85 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-21 11:25:42 -07:00
Stephen Akridge
abbb037888
Implement storage contract logic
2019-01-21 08:36:49 -08:00
dependabot[bot]
200d5e62c2
Bump byteorder from 1.2.7 to 1.3.0
...
Bumps [byteorder](https://github.com/BurntSushi/byteorder ) from 1.2.7 to 1.3.0.
- [Release notes](https://github.com/BurntSushi/byteorder/releases )
- [Changelog](https://github.com/BurntSushi/byteorder/blob/master/CHANGELOG.md )
- [Commits](https://github.com/BurntSushi/byteorder/compare/1.2.7...1.3.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-21 09:07:17 -07:00
dependabot[bot]
b748942d6a
Bump serde from 1.0.84 to 1.0.85
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.84 to 1.0.85.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.84...v1.0.85 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-21 08:25:24 -07:00
Stephen Akridge
1fd7bd7ede
Storage fixes
...
* replicators generate their sample values
* fixes to replicator block height logic
2019-01-18 13:05:35 -08:00
dependabot[bot]
e9116736cd
Bump libc from 0.2.46 to 0.2.47
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.46 to 0.2.47.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.46...0.2.47 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-15 08:56:16 -07:00
Jak May
b2afd1ea0b
Bump rbpf to 0.1.9 ( #2422 )
2019-01-15 00:42:30 -08:00
Jack May
a6773ad442
Specify entrypoint when building rust programs
2019-01-14 20:13:01 -08:00
Jak May
e9a0b3a8f3
Add BPF-to-BPF and PC relative call tests ( #2395 )
2019-01-11 19:33:08 -08:00
Jak May
23c43ed21b
Multi-file BPF C builds ( #2393 )
2019-01-11 15:33:21 -08:00
jackcmay
56b6ed6730
Rerun build if any file in a directory has changed ( #2343 )
2019-01-09 09:56:23 -08:00
Greg Fitzgerald
30b662df39
Remove clones in native programs
2019-01-04 13:38:03 -07:00
dependabot[bot]
c4259fc8cc
Bump libc from 0.2.45 to 0.2.46
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.45 to 0.2.46.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.45...0.2.46 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-03 09:13:03 -07:00
dependabot[bot]
8c5614daa1
Bump serde_derive from 1.0.82 to 1.0.84
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.82 to 1.0.84.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.82...v1.0.84 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-02 15:54:13 -08:00
dependabot[bot]
eb668c6466
Bump serde from 1.0.82 to 1.0.84
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.82 to 1.0.84.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.82...v1.0.84 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-02 16:42:35 -07:00
jackcmay
a461c5682d
First stab at Rust BPF ( #2269 )
...
First stab at Rust BPF
2019-01-02 15:12:42 -08:00
Michael Vines
58f2598d5d
Revert "Validators make a transaction to advertise their storage last_id"
...
This reverts commit a1759aed19
.
2018-12-23 14:02:09 -08:00
Stephen Akridge
a1759aed19
Validators make a transaction to advertise their storage last_id
...
* Also implement more storage contract logic
* Add transactions for proof validation,
* Move storage state members into system storage account userdata
2018-12-21 15:45:30 -08:00
Michael Vines
0e567381fb
v0.12.0
2018-12-19 17:03:28 -08:00
Michael Vines
fc56e1e517
Correct crate-type to match other native programs
2018-12-17 15:17:13 -08:00
Michael Vines
0f4837980f
Switch noop from println to solana_logger
2018-12-17 14:56:12 -08:00
Michael Vines
fd562cb9e2
Rust 2018 cleanup
2018-12-14 21:57:15 -08:00
Michael Vines
6ac466c0a4
Move src/logger.rs into logger/ crate to unify logging across the workspace
2018-12-14 13:10:43 -08:00
Michael Vines
60f3aeb4ef
clippy fix
2018-12-13 23:40:26 -08:00
Michael Vines
092edabd2d
Add homepage field to all crates
2018-12-13 22:25:27 -08:00
Stephen Akridge
7cdbbfa88e
Storage stage updates
...
* Remove logging init from storage program: saw a crash in a test
indicating the logger being init'ed twice.
* Add entry_height mining proof to indicate which segment the result is
for
* Add an interface to get storage miner pubkeys for a given entry_height
* Add an interface to get the current storage mining entry_height
* Set the tvu socket to 0.0.0.0:0 in replicator to stop getting entries
after the desired ledger segment is downloaded.
* Use signature of PoH height to determine which block to download for
replicator.
2018-12-13 11:30:12 -08:00
Michael Vines
59a094cb77
Ensure bpf_c files exist to avoid accidental rebuilds as the tree changes
2018-12-12 17:30:41 -08:00
jackcmay
cefbb7c27d
Fix shared object relcations with multiple static arrays ( #2121 )
2018-12-12 08:41:45 -08:00
Pankaj Garg
9243bc58db
Metrics for window repair ( #2106 )
...
* Metrics for window repair
- Also increase max repair length
* fix vote counters, and add repair window graph
* update per node graphs
* revert max repair length change
2018-12-11 15:43:41 -08:00
jackcmay
935524f20c
Fix eh frame relocation ( #2109 )
...
* Exclude .eh_frame
2018-12-11 12:14:41 -08:00
jackcmay
5847961fec
Fix BPF loader messages ( #2098 )
2018-12-11 11:20:26 -08:00
dependabot[bot]
40d7f5eff8
Bump libc from 0.2.44 to 0.2.45
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.44 to 0.2.45.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.44...0.2.45 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-11 11:52:27 -07:00
jackcmay
e3dfd7b1ab
Allow BPF structure passing and returning ( #2100 )
...
* Add BPF struct passing and returning tests
2018-12-11 09:03:37 -08:00
dependabot[bot]
166945a461
Bump serde from 1.0.81 to 1.0.82
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.81...v1.0.82 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-11 08:53:20 -08:00