Greg Fitzgerald
31ebdbc77f
Don't subject authorizing a new stake authority to lockup ( #9434 )
2020-04-10 17:21:24 -06:00
Jack May
ad0482be73
Revert "Add native loader entry points ( #9275 )" Breaks genesis_config abi ( #9377 )
...
This reverts commit ed86d8d1fc
.
2020-04-08 14:36:18 -07:00
dependabot-preview[bot]
8cdf406dd3
Bump serde from 1.0.105 to 1.0.106
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.105 to 1.0.106.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.105...v1.0.106 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-04 15:13:52 -07:00
Jack May
ed86d8d1fc
Add native loader entry points ( #9275 )
2020-04-03 17:40:59 -07:00
Jack May
268e04cb4a
Rename CustomError to Custom ( #9207 )
2020-04-01 09:01:11 -07:00
Jack May
a8d4b1c90a
Nit: fmt ( #9204 )
...
automerge
2020-03-31 19:19:59 -07:00
Jack May
1e6b789bfa
Improve BPF Loader reporting ( #9202 )
...
automerge
2020-03-31 18:18:44 -07:00
Jack May
130c0b484d
Enforce an executable's rent exemption in the runtime ( #9134 )
2020-03-31 10:07:38 -07:00
Michael Vines
0e2722c638
solana-validator now supports multiple --authorized-voter arguments ( #9174 )
...
* Use Epoch type
* Vote account's authorized voter is now supported without a validator restart
2020-03-31 08:23:42 -07:00
dependabot-preview[bot]
2ed3e2160d
Bump serde_json from 1.0.48 to 1.0.49 ( #9139 )
...
* Bump serde_json from 1.0.48 to 1.0.49
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.48 to 1.0.49.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.48...v1.0.49 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Update serde_json in programs
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Justin Starry <justin@solana.com>
2020-03-28 12:19:40 -07:00
Michael Vines
d7fa40087c
Bump version to 1.2.0
2020-03-28 09:44:13 -07:00
Jack May
4b7da6e60d
Bump rBPF version to v0.1.25: Fix Windows build ( #9136 )
...
automerge
2020-03-27 19:07:58 -07:00
Jack May
dae28b9cfe
Bump rBPF to v0.1.24, update rBPF/BPF Loader error handling ( #9089 )
2020-03-26 14:00:26 -07:00
Tyera Eulberg
959c1ea857
Cargo update bumpalo ( #9067 )
...
* Cargo update bumpalo
* Remove ignore warning
2020-03-25 18:11:08 -06:00
Michael Vines
f78a90bce2
Vote InitializeAccount and UpdateNode instructions now need a signature from the validator identity ( #8947 )
...
automerge
2020-03-19 01:58:52 -07:00
dependabot-preview[bot]
24d871b529
Bump serde from 1.0.104 to 1.0.105 ( #8954 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.104 to 1.0.105.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.104...v1.0.105 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-18 22:35:30 -07:00
dependabot-preview[bot]
8f5ee6832f
Bump libc from 0.2.67 to 0.2.68 ( #8915 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.67 to 0.2.68.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.67...0.2.68 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-18 13:27:08 -06:00
Michael Vines
74866882f2
Document account/signer requirements for vote instructions
2020-03-18 11:11:48 -07:00
Jack May
de6ef68571
Add BPF virtual address translate helpers ( #8919 )
2020-03-18 08:39:55 -07:00
Jack May
f192e4f08f
Nit: Align Rust and C names ( #8918 )
2020-03-17 19:37:16 -07:00
Jack May
d087ed5bf6
Remove copypasta ( #8912 )
2020-03-17 15:59:09 -07:00
Jack May
668dfc40c7
Align C and Rust handling of AccountInfos ( #8906 )
2020-03-17 12:34:14 -07:00
Jack May
61514e3b0e
Allow program accounts to be passed as program and parameter ( #8907 )
2020-03-17 12:06:15 -07:00
Michael Vines
29fb79382c
Rework validator vote account defaults to half voting fees
2020-03-13 20:13:33 -07:00
Jack May
6eb4973780
Don't use move semantics if not needed ( #8793 )
2020-03-11 14:37:23 -07:00
dependabot-preview[bot]
75a84ecdae
Bump reqwest from 0.10.1 to 0.10.4 ( #8787 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.10.1 to 0.10.4.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.10.1...v0.10.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-11 09:02:40 -06:00
dependabot-preview[bot]
e41ff2df66
Bump chrono from 0.4.10 to 0.4.11 ( #8755 )
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.10 to 0.4.11.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/master/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.10...v0.4.11 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-10 08:43:18 -06:00
dependabot-preview[bot]
6d0f3762b2
Bump hex from 0.4.1 to 0.4.2 ( #8725 )
...
Bumps [hex](https://github.com/KokaKiwi/rust-hex ) from 0.4.1 to 0.4.2.
- [Release notes](https://github.com/KokaKiwi/rust-hex/releases )
- [Commits](https://github.com/KokaKiwi/rust-hex/compare/v0.4.1...v0.4.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-09 09:23:54 -06:00
dependabot-preview[bot]
ff74452ef3
Bump libc from 0.2.66 to 0.2.67 ( #8680 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.66 to 0.2.67.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.66...0.2.67 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-08 21:38:58 -07:00
Jack May
a5f2444ad2
Remove copypasta ( #8700 )
...
automerge
2020-03-06 18:18:01 -08:00
Greg Fitzgerald
2242b1b4a5
Bump byteorder from 1.3.2 to 1.3.4 ( #8159 )
...
Bumps [byteorder](https://github.com/BurntSushi/byteorder ) from 1.3.2 to 1.3.4.
- [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.2...1.3.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-05 17:07:18 -07:00
Jack May
8df4d8b905
Update to rbpf v0.1.23 - Use trait objects to convey helper context ( #8648 )
2020-03-05 14:14:21 -08:00
Jack May
5e3ce30d02
Pass the correct program_id to programs ( #8630 )
2020-03-05 10:57:35 -08:00
Grimes
fc409d9262
Consistency nits and spelling ( #8642 )
...
automerge
2020-03-04 16:26:32 -08:00
carllin
f23dc11a86
compute_bank_stats needs to return newly computed ForkStats ( #8608 )
...
* Fix broken confirmation, add test
2020-03-04 11:49:56 -08:00
Jack May
25df95be6f
Expose executable and rent_epoch in AccountInfo ( #8619 )
2020-03-04 10:52:09 -08:00
Jack May
642720a2fe
nit: describe the root program id ( #8621 )
2020-03-04 08:55:01 -08:00
Tyera Eulberg
8dc4724340
Allow stake lockup fields to be updated independently ( #8568 )
...
* Make Lockup fields optional for SetLockup instruction
* Use LockupArgs in cli
* Include lockup timestamp in stake-account print
2020-03-02 12:28:43 -08:00
Trent Nelson
90bedd7e06
Split signature throughput tracking out of `FeeCalculator` ( #8447 )
...
* SDK: Split new `FeeRateGovernor` out of `FeeCalculator`
Leaving `FeeCalculator` to *only* calculate transaction fees
* Replace `FeeCalculator` with `FeeRateGovernor` as appropriate
* Expose recent `FeeRateGovernor` to clients
* Move `burn()` back into `FeeCalculator`
Appease BPF tests
* Revert "Move `burn()` back into `FeeCalculator`"
This reverts commit f3035624307196722b62ff8b74c12cfcc13b1941.
* Adjust BPF `Fee` sysvar test to reflect removal of `burn()` from `FeeCalculator`
* Make `FeeRateGovernor`'s `lamports_per_signature` private
* rebase artifacts
* fmt
* Drop 'Recent'
* Drop _with_commitment variant
* Use a more portable integer for `target_signatures_per_slot`
* Add docs for `getReeRateCalculator` JSON RPC method
* Don't return `lamports_per_signature` in `getFeeRateGovernor` JSONRPC reply
2020-02-28 13:27:01 -07:00
Michael Vines
8c07ba635e
Cargo.lock
2020-02-26 20:47:43 -07:00
Michael Vines
27c5ec0149
Use the same reqwest features across the repo
2020-02-26 20:47:43 -07:00
Justin Starry
021d0a46f8
Move docs from book/ to docs/ ( #8469 )
...
automerge
2020-02-26 07:11:38 -08:00
Greg Fitzgerald
c6a7f499ce
Allow withdrawer to change the authorized stake key ( #8456 )
2020-02-25 19:03:26 -07:00
carllin
d821fd29d6
Add versioning ( #8348 )
...
automerge
2020-02-25 17:12:01 -08:00
carllin
39282be486
Determine vote_state ahead of time ( #8303 )
...
automerge
2020-02-24 19:27:04 -08:00
Jack May
b18e4057bb
Fix SDK deps
2020-02-24 17:25:48 -07:00
Dan Albert
2d9d2f1e99
Update cargo versions from 1.0 to 1.1 ( #8397 )
2020-02-21 23:09:45 -08:00
Pankaj Garg
aa80f69171
Promote some datapoints to `info` to fix dashboard ( #8381 )
...
automerge
2020-02-21 13:41:49 -08:00
Jack May
0ace22d03f
Optimize account verification ( #8385 )
2020-02-21 13:28:35 -08:00
Jack May
0e6aca5a7e
Reorganize message processor in prep for cross-program-invocation ( #8338 )
2020-02-21 11:30:00 -08:00
Michael Vines
48f58a88bc
Bump version to 1.0.0
2020-02-20 23:52:19 -07:00
Tyera Eulberg
ab361a8073
Rename KeypairUtil to Signer ( #8360 )
...
automerge
2020-02-20 13:28:55 -08:00
Greg Fitzgerald
e8124324ff
Support transaction signing by heterogenous lists of keypairs ( #8342 )
...
automerge
2020-02-20 12:13:23 -08:00
Michael Vines
45774dc4aa
Fix comment
2020-02-20 10:32:36 -07:00
Jack May
71f77a8e0a
Remove Exchange program's use of GenericError ( #8290 )
...
automerge
2020-02-14 14:52:13 -08:00
Jack May
644a7f9a44
Remove Move Loader's use of GenericError ( #8289 )
...
automerge
2020-02-14 14:49:21 -08:00
Jack May
965361ff69
Remove failure's use of GenericError ( #8287 )
...
automerge
2020-02-14 14:07:53 -08:00
Jack May
4593d333c7
Remove BPF Loader's use of GenericError ( #8284 )
2020-02-14 13:59:03 -08:00
Jack May
059764586a
Rename from account userdata to data ( #8224 )
2020-02-11 16:30:22 -08:00
Michael Vines
72b11081a4
Report validator rewards in getConfirmedBlock JSON RPC
2020-02-11 17:25:45 -07:00
Jack May
2e9ba149f2
Update LVM and rBPF versions ( #8215 )
2020-02-11 12:52:13 -08:00
Jack May
517fe73734
Non-conflicting account duplicate marker value ( #8206 )
2020-02-11 10:03:28 -08:00
Jack May
df782b93ae
Add is_writable to AccountInfo ( #8196 )
2020-02-10 21:33:29 -08:00
François Garillot
f016c9a669
Maintenance : simplify a few patterns, remove unneeded dependencies ( #8137 )
...
* Simplify a few pattern matches
* Removing unneeded dependencies, upgrading internal version #s
net-shaper: Removing log, semver, serde_derive
bench-tps: Removing serde, serde_derive
banking-bench: Removing solana
ledger-tool: Removing bincode, serde, serde_derive
librapay: Removing solana, language_e2e_tests
log-analyzer: Removing log, semver, serde_derive
exchange: Removing solana
core: Removing crc, memmap, symlink, untrusted
perf: Removing serde_derive
genesis: Removing hex, serde_derive
sdk-c: Removing sha2
sys-tuner: Removing semver
bench-exchange: Removing bincode, bs58, env_logger, serde, serde_derive, untrusted, ws
btc_spv_bin: Removing serde_json
btc_spv: Removing chrono
bpf_loader: Removing serde
ledger: Removing dlopen, dlopen_derive, serde_derive
move_loader: Removing byteorder, libc, language_e2e_tests
ownable: Removing serde, serde_derive
client: Removing rand
archiver-utils: Removing rand_chacha
validator: Removing serde_json, tempfile
param_passing_dep: Removing solana
failure: Removing log
vest: Removing log
vote-signer: Removing bs58, serde
local-cluster: Removing symlink
keygen: Removing rpassword
install: Removing bs58, log
upload-perf: Removing log
runtime: Removing serde_json
stake: Removing rand
* Add modified Cargo.lock
* fixup! Simplify a few pattern matches
* fixup! Simplify a few pattern matches
2020-02-06 10:02:38 -07:00
Jack May
8436457e75
Rename program_utils.rs ( #8127 )
2020-02-05 12:48:30 -08:00
dependabot-preview[bot]
65c24db83c
Bump serde_json from 1.0.44 to 1.0.46 ( #8087 )
...
* Bump serde_json from 1.0.44 to 1.0.46
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.44 to 1.0.46.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.44...v1.0.46 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Update Move's serde_json to v1.0.46
Co-authored-by: Jack May <jack@solana.com>
2020-02-04 16:59:23 -08:00
Jack May
b6d09f1901
Add BPF program entrypoint return type ( #8111 )
2020-02-04 12:25:42 -08:00
Jack May
4e595e8e3c
Facilitate printing program errors from BPF programs ( #8109 )
2020-02-04 09:03:45 -08:00
Jack May
0fd795a676
Remove program error footgun and cleaner developer experience ( #8042 )
2020-01-31 10:58:07 -08:00
Jack May
2226c1b75c
Add Rust BPF RefCell borrow helpers ( #8047 )
2020-01-30 20:40:27 -08:00
Jack May
dd276138c2
Add support for idiomatic error handling to BPF instruction processors ( #7968 )
2020-01-30 09:47:22 -08:00
Jack May
669502ede7
Don't depend on user modifiable data to parse paramter buffer ( #8022 )
2020-01-29 21:49:42 -08:00
Jack May
b19f730527
Seperate RefCells lamports and data ( #8021 )
2020-01-29 21:15:04 -08:00
Jack May
d5ff5f4739
Update solana_rbpf v0.1.20 ( #8023 )
2020-01-29 21:14:49 -08:00
Rob Walker
e6803daf10
Remove support for stake redelegation ( #7995 )
...
* Remove support for stake redelegation
* fixup
2020-01-29 17:59:14 -08:00
Rob Walker
0d6c233747
Add set_lockup to stake ( #7997 )
2020-01-28 20:59:53 -08:00
Jack May
7faab2072c
Cleanup BPF use syntax ( #8001 )
2020-01-28 17:03:37 -08:00
Jack May
1596c961d9
Rust BPF program cleanup ( #7990 )
2020-01-27 18:27:44 -08:00
Dan Albert
c324e71768
Bump cargo toml versions to 0.24.0 ( #7976 )
2020-01-25 11:04:27 -06:00
Jack May
1b391dd36b
Add account accessor functions ( #7966 )
2020-01-24 14:34:59 -08:00
Jack May
917067741a
Cleanup BPF SDK ( #7965 )
2020-01-24 13:41:14 -08:00
Jack May
34ed93d57c
Optimize account copies and use RefCell to handle duplicate accounts in BPF programs ( #7958 )
2020-01-24 10:54:26 -08:00
Jack May
c95e5346a4
Boot the mut ( #7926 )
2020-01-22 17:54:06 -08:00
Rob Walker
1e2b55c0d7
Remove RedeemVoteCredits ( #7916 )
...
* Move redeem_vote_credits into runtime
* Move redeem_vote_credits into runtime
* Remove RedeemVoteCredits
* chugga for less indentation
* resurrect NoCreditsToRedeem
* fixup
2020-01-22 16:53:42 -08:00
Rob Walker
ce70d6eedc
Add redeem_vote_credits to runtime ( #7910 )
...
* Move redeem_vote_credits into runtime
* fixup
* test
* move stake manipulation to stake program
* chugga for less indentation
2020-01-22 12:21:31 -08:00
Jack May
023074650f
Allow the same account to be passed multiple times to a single instruction ( #7795 )
2020-01-22 09:11:56 -08:00
Rob Walker
7e1b380f01
Move vote_state current credits into epoch_credits ( #7909 )
...
* Move vote_state current credits into epoch_credits
* fixups
* fixup
2020-01-21 19:08:40 -08:00
Jack May
1a18f0ca55
Add rust duplicate account test program ( #7897 )
...
automerge
2020-01-21 10:59:19 -08:00
Jack May
bb950ec93e
Naming nits ( #7896 )
...
automerge
2020-01-21 10:38:46 -08:00
Tyera Eulberg
21d5fe6272
Fix timestamp overflow ( #7886 )
...
* Split timestamp calculation into separate fn for math unit testing
* Add failing test
* Fix failing test; also bump stakes to near expected cluster max supply
* Don't error on timestamp of slot 0
2020-01-20 17:54:44 -07:00
Rob Walker
cc299053cc
Add support for stake::split() via create_account_with_seed() ( #7879 )
...
* Add split with seed
* move to new system_program APIs
* de-replicode
2020-01-20 12:33:27 -08:00
Rob Walker
f5e797e3aa
cleanup test checks cargo audit ( #7849 )
...
automerge
2020-01-16 15:08:36 -08:00
Jack May
08ba27627d
Direct entrypoint for execution ( #7746 )
2020-01-10 13:20:15 -08:00
Jack May
b714a4be63
Fix call to BPF build script ( #7754 )
...
automerge
2020-01-10 10:28:55 -08:00
Jack May
2d08dddfc8
nit, cleanup uses ( #7747 )
...
automerge
2020-01-09 23:58:13 -08:00
Jack May
6da8f49d8b
nit, clearer error message ( #7748 )
...
automerge
2020-01-09 23:53:47 -08:00
Justin Starry
e90a31781c
Update http crate in bpf program to fix security vulnerability ( #7735 )
2020-01-10 10:21:20 +08:00
dependabot-preview[bot]
cf32fdf672
Bump reqwest from 0.10.0 to 0.10.1 ( #7731 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.10.0...v0.10.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-09 17:10:55 -07:00
Jack May
09cff5e4cc
Cleanup usage of feature "program" ( #7712 )
2020-01-08 13:49:35 -08:00
dependabot-preview[bot]
57858b8015
Bump reqwest from 0.9.24 to 0.10.0 ( #7642 )
...
* Bump reqwest from 0.9.24 to 0.10.0
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.24 to 0.10.0.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Make reqwest::blocking specific
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-01-08 13:31:43 -07:00
Jack May
07855e3125
Allow override of RUST_LOG ( #7705 )
2020-01-08 09:19:12 -08:00
Rob Walker
8dad3af36d
Update Lockup comments ( #7692 )
2020-01-06 19:52:20 -08:00
Jack May
a956bb08d8
Export bpf loader ser/de ( #7661 )
2020-01-02 18:18:56 -08:00
Rob Walker
63f185f9bf
Delete unused type ( #7653 )
2020-01-02 13:15:31 -08:00
Rob Walker
e97b0088f2
Make lockups block stake transfers via rekeying ( #7651 )
2020-01-01 11:03:29 -08:00
Rob Walker
6b7d9942a7
Add authorized_voter history ( #7643 )
...
* Add authorized_voter history
* fixups
* coverage
* bigger vote state
2019-12-30 19:57:53 -08:00
Rob Walker
e1ebaa902b
Add base pubkey to create_account_with_seed ( #7636 )
2019-12-29 16:42:24 -08:00
Michael Vines
89f5f336af
Account for rent ( #7626 )
...
automerge
2019-12-24 18:01:21 -08:00
Rob Walker
120c8f244c
Add slot_history for slashing ( #7589 )
...
* Add slot_history for slashing
* fixup
* fixup
2019-12-23 12:23:45 -08:00
Dan Albert
ca10cf081f
Update cargo.toml files from 0.22.0 to 0.23.0 ( #7596 )
2019-12-20 21:45:42 -05:00
Rob Walker
a7040896f0
Update to rust 1.40.0 ( #7572 )
...
* Update to rust 1.40.0
* fixups
2019-12-19 23:27:54 -08:00
Rob Walker
3f405d8908
Add unix_timestap to stake lockups ( #7569 )
2019-12-19 14:37:47 -08:00
Tyera Eulberg
f03ed9f5bf
Add helper fn and runtime test ( #7516 )
2019-12-16 17:02:40 -07:00
Rob Walker
b22dc38ba1
Add support for split of 100% of stake ( #7510 )
2019-12-16 15:56:34 -08:00
Rob Walker
7a7992ab0b
update bpf Cargo_lock ( #7512 )
2019-12-16 13:47:45 -08:00
dependabot-preview[bot]
7ad64c8d45
Bump serde from 1.0.103 to 1.0.104
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.103 to 1.0.104.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.103...v1.0.104 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-16 08:50:09 -07:00
Tyera Eulberg
6b88da2b82
Hook up getBlockTime rpc to real data ( #7476 )
...
* Add blocktree timestamp helper functions and tests
* Flesh out blocktree::get_block_time
* Move stakes up into rpc to make testing easier; expand tests
* Review comments
2019-12-14 12:23:02 -07:00
Rob Walker
f05860672c
Add create-address-with-seed to solana-cli ( #7472 )
...
* Add create account with seed to cli
* clippy
* fixup
2019-12-14 04:38:24 -08:00
Rob Walker
f5137028fa
Update stake_instruction.rs
2019-12-13 12:53:25 -08:00
Michael Vines
48f9b2fdcc
watchtower: Add Slack/Discord sanity failure notification ( #7467 )
...
automerge
2019-12-12 23:49:16 -08:00
Michael Vines
f7a87d5e52
Add vote-update-validator subcommand
2019-12-12 23:26:39 -07:00
Rob Walker
777ae3c215
Add time since genesis to sysvar::clock ( #7289 )
...
* genesis timestamp
* remove clock::create_account()
* ..
* add configure-able creation time
* dividing by 1T, should be dividing by 1B
2019-12-12 14:03:43 -08:00
Greg Fitzgerald
c4f3bb9b67
Use term dapp only in places where the application needs to run entirely on-chain ( #7446 )
2019-12-12 10:38:09 -07:00
Justin Starry
dad5c62df5
Add uptime column to show-validators ( #7441 )
...
automerge
2019-12-11 22:04:54 -08:00
dependabot-preview[bot]
46a4ea8f67
Bump reqwest from 0.9.22 to 0.9.24
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.22 to 0.9.24.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/v0.9.24/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.9.22...v0.9.24 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-11 13:42:38 -07:00
Jack May
9e2ce1751b
Bump Rust-BPF to Rust 1.39 ( #7420 )
2019-12-10 22:27:14 -08:00
dependabot-preview[bot]
6f457292ff
Bump bincode from 1.2.0 to 1.2.1
...
Bumps [bincode](https://github.com/servo/bincode ) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/servo/bincode/releases )
- [Commits](https://github.com/servo/bincode/compare/v1.2.0...v1.2.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-10 10:00:56 -07:00
Rob Walker
39cd6dff7d
turn on rent ( #7368 )
...
* turn on rent
* add rent exempt balances for bootstrap accounts
* use Rent::free() when not testing rent
2019-12-09 21:56:43 -08:00
Rob Walker
0d6fca5abc
500M SOL ( #7361 )
...
* 500_000_000MM SOL
* fixup
2019-12-08 14:36:09 -08:00
dependabot-preview[bot]
891767c6b7
Bump serde_json from 1.0.42 to 1.0.44
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.42 to 1.0.44.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.42...v1.0.44 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-08 09:43:24 -07:00
Tyera Eulberg
3ab8185777
Add intermittent Timestamping to Votes ( #7233 )
...
* Add intermittent timestamp to Vote
* Add timestamp to VoteState, add timestamp processing to program
* Print recent timestamp with solana show-vote-account
* Add offset of 1 to timestamp Vote interval to initialize at node boot (slot 1)
* Review comments
* Cache last_timestamp in Tower and use for interval check
* Move work into Tower method
* Clarify timestamping interval
* Replace tuple with struct
2019-12-06 14:38:49 -07:00
Rob Walker
709bda5939
custodian signs withdraw ( #7286 )
2019-12-04 21:25:01 -08:00
Jack May
9485eba73d
nudge ( #7279 )
2019-12-04 19:28:20 -08:00
Jack May
23c4a7dc49
nudge ( #7280 )
2019-12-04 19:28:00 -08:00
Jack May
39b578fde9
Remove runtime dependency from config program unit tests and move back to config program ( #7277 )
2019-12-04 19:24:12 -08:00
Jack May
703a5348e8
Relocate program tests ( #7259 )
2019-12-04 12:41:54 -08:00
Jack May
1a135fa30e
Verify BPF ELF during finalize ( #7266 )
2019-12-04 12:03:29 -08:00
Jack May
9b172879a2
Remove deprecated solana_entrypoint macro ( #7257 )
2019-12-04 00:42:50 -08:00
Rob Walker
9077a94dfe
vote update node_id ( #7253 )
...
* vote update node_id
* un-break binary 'contract'
2019-12-03 22:50:08 -08:00
Rob Walker
ae93d574c2
commission as percent ( #7239 )
...
* commission_as_percent
* fixup
2019-12-03 20:55:04 -08:00
Rob Walker
369f37a0a4
genesis validators ( #7235 )
...
* genesis validators
* slp1 nodes get 500SOL
* no commission
2019-12-03 20:44:02 -08:00
Justin Starry
7cfff75c3e
Use procedural macro to generate static public keys ( #7219 )
...
automerge
2019-12-03 17:55:18 -08:00
Parth
ba688cf629
enforce proper range for rent burn_percent ( #7217 )
...
* enforce proper range for burn_percent
2019-12-04 00:54:01 +05:30
Greg Fitzgerald
6796b08909
Migrate to thiserror ( #7177 )
...
* Migrate to thiserror
* Discourage the use of other modules' Result alias
`io::Result` set a bad precedent. Don't import other `Result`
aliases.
2019-12-02 15:42:05 -07:00
dependabot-preview[bot]
0f872af502
Bump libc from 0.2.65 to 0.2.66 ( #7180 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.65 to 0.2.66.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.65...0.2.66 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-02 09:56:03 -07:00
Greg Fitzgerald
92d485dd4d
Cleanup ( #7176 )
...
* Drop serde error instances
These were no longer needed after ToPrimitive instances were
added.
* Rename last of _api crates
2019-11-29 13:50:32 -07:00
dependabot-preview[bot]
7f4feaee08
Bump serde from 1.0.102 to 1.0.103 ( #7163 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.102 to 1.0.103.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.102...v1.0.103 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-27 09:10:25 -07:00
Rob Walker
8d75efdc58
genesis config hashmaps ( #7107 )
2019-11-26 19:23:37 -08:00
dependabot-preview[bot]
c810913861
Bump serde_derive from 1.0.102 to 1.0.103 ( #7141 )
...
automerge
2019-11-26 14:44:20 -08:00
dependabot-preview[bot]
2b13158e29
Bump serde_json from 1.0.41 to 1.0.42 ( #7142 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.41 to 1.0.42.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.41...v1.0.42 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-26 15:09:01 -07:00
Michael Vines
294662a1ce
Bump version to 0.22.0
2019-11-25 21:34:50 -07:00
Rob Walker
ef64f00cbb
Revert "Revert "add genesis stake placeholders ( #6969 )" ( #7109 )" ( #7124 )
...
This reverts commit 702f7cc51d
.
2019-11-25 15:11:55 -08:00
Rob Walker
acbe89a159
shrink stakes ( #7122 )
2019-11-25 13:14:32 -08:00
dependabot-preview[bot]
686aa3a150
Bump chrono from 0.4.9 to 0.4.10 ( #7113 )
...
automerge
2019-11-25 10:01:46 -08:00
anatoly yakovenko
702f7cc51d
Revert "add genesis stake placeholders ( #6969 )" ( #7109 )
...
* Revert "add genesis stake placeholders (#6969 )"
This reverts commit 8a879faac7
.
* fixup! Revert "add genesis stake placeholders (#6969 )"
* fixup! fixup! Revert "add genesis stake placeholders (#6969 )"
* fixup! fixup! fixup! Revert "add genesis stake placeholders (#6969 )"
* fixup! fixup! fixup! fixup! Revert "add genesis stake placeholders (#6969 )"
* fmt
2019-11-23 23:15:21 -07:00
Greg Fitzgerald
f040987c9f
Move date oracle to config program ( #7105 )
...
automerge
2019-11-22 15:10:53 -08:00
Greg Fitzgerald
2a42ddbcbf
Don't panic if pubkeys are missing from Budget transaction ( #7102 )
2019-11-22 14:34:50 -07:00
Justin Starry
ce8d37984d
Allow secure keypair input for solana-validator cli ( #7080 )
...
* Allow secure keypair input for solana-validator cli
* feedback
* Add --skip-mnemonic-validation
* Update --identity to --identity-keypair
* Use struct instead of tuple
* Fix dependencies
* cargo fmt
* Add basic tests
* Use `seed phrase` instead of `mnemonic`
* Update passphrase prompt
2019-11-22 10:20:40 -05:00
Jack May
d8ead57fbb
Use bs58 strings to declare IDs rather then raw bytes ( #7082 )
2019-11-21 16:34:40 -08:00
Rob Walker
8a879faac7
add genesis stake placeholders ( #6969 )
...
* add investor stake placeholders
fixups
fixups
review comments, fixups
make more data-looky for easier management
rent may be zero
rework with more tables, derived keys
fixups
rebase-fix
fixups
fixups
* genesis is now too big to boot in 10 seconds
2019-11-21 12:05:31 -08:00
Greg Fitzgerald
96dd044f8e
Allow vest's terminator to recapture tokens ( #7071 )
...
* Allow vest's terminator to recapture tokens
* Less code
* Add a VestAll instruction
The terminator may decide it's impractical to maintain a vest
contract and want to make all tokens immediately redeemable.
2019-11-20 19:33:17 -07:00
Jack May
3415db9739
Merge api/program into single units ( #7061 )
2019-11-20 16:32:19 -08:00
Rob Walker
ba9aaee7cd
Update config.rs ( #7045 )
...
automerge
2019-11-20 11:10:46 -08:00
Jack May
d184d3a732
Merge native programs parts into one unit ( #7047 )
2019-11-20 10:12:43 -08:00
Jack May
d2ed921bc6
Cleanup nightly warnings ( #7055 )
2019-11-19 20:15:37 -08:00
Greg Fitzgerald
bfa2535ea1
Add non-fungible token program ( #7007 )
...
* Add non-fungible token program
* Remove issuer and id from state
* Boot NftInstruction and NftState
* Rename NFT to Ownable
Maybe this should be "Owned" to avoid confusion with an Ownable trait?
* Rename directory
* Delete unreachable branch
* Don't use copy_from_slice - need an error, not a panic.
* Rename contract_pubkey to account_pubkey
2019-11-18 18:09:42 -07:00
Jack May
6ec918fabb
Update Move support to accomadate Libra's changes to compiler behavior ( #6993 )
2019-11-18 16:47:01 -08:00
Rob Walker
cbf7c0080b
fix split instruction doc ( #7022 )
2019-11-18 15:31:17 -08:00
Justin Starry
3acd84d9c0
Allow creating an vote program ix where the withdrawer is also the "to" account ( #6992 )
...
automerge
2019-11-18 12:43:47 -08:00
Justin Starry
afd9ae9999
Allow withdraws to the authorized withdrawer ( #6989 )
2019-11-15 17:16:24 -05:00
Michael Vines
fcc2874591
Remove/address some TODOs ( #6923 )
2019-11-13 09:43:15 -07:00
Greg Fitzgerald
361eab1bf7
Remove unused dependencies ( #6917 )
...
automerge
2019-11-12 22:00:29 -08:00
Rob Walker
bb00904fc8
add rent reserve for bootstrap stakes ( #6876 )
...
* genesis investor stakes
* assert rent is sufficient for these bootstrappers
2019-11-12 12:33:40 -08:00
Justin Starry
9807f47d4e
Rename genesis block to genesis config ( #6816 )
2019-11-08 23:56:57 -05:00
Jack May
346213da4c
Check for LD_DW at the end of a program ( #6821 )
2019-11-08 13:30:44 -08:00
Jack May
2855c55ac1
Move loader does not need genesis auth key ( #6818 )
2019-11-08 11:52:56 -08:00
Jack May
dfc4d7cb50
Remove unsupported test ( #6820 )
2019-11-08 11:37:47 -08:00
Jack May
cd5ec8cd35
Fix blind keyed_account indexing in BPF and Move loader ( #6810 )
2019-11-08 09:19:19 -08:00
Parth
5bd05fba09
require `to` account signature ( #6658 )
...
* require to signature
* fixing invocation to create_account
* fix create_account references
* address review comment
* whacking bugs in tests
* fixing stake program tests
2019-11-08 15:57:35 +05:30
Tyera Eulberg
c6931dcb07
Remove credit-only account handling ( #6726 )
...
* Renaming
- credit-only/credit-debit to read-only/read-write
- debitable to writable
* Remove credit handling, making credit-only accounts read-only
* Update programs to remove deprecated credit-only account designation
* Use readonly and writable instead of underscored types
2019-11-05 09:38:35 -07:00
anatoly yakovenko
f54cfcdb8f
Store and persists full stack of tower votes in gossip ( #6695 )
...
* vote array
wip
wip
wip
update
gossip index should match tower index
tests build
clippy
test index after expired vote
test
bank specific last vote sync time
* verify
* we are likely to see many more warnings about old votes now
2019-11-04 16:19:54 -08:00
Rob Walker
efe260f12e
sysvar trait ( #6667 )
...
* sysvar trait
* get the new guy in on it
2019-11-04 12:31:24 -08:00
Michael Vines
50a17fc00b
Use Slot and Epoch type aliases instead of raw u64 ( #6693 )
...
automerge
2019-11-02 00:38:30 -07:00
TristanDebrunner
d2c66c40c6
Have cargo-install-all.sh also look in program target dirs for so's ( #6631 )
2019-10-31 14:40:54 -07:00
Rob Walker
111942a47d
document clock ( #6662 )
2019-10-31 13:26:55 -07:00
Rob Walker
bc88180058
stake split ( #6402 )
...
* stake split
* stake split
2019-10-31 11:07:27 -07:00
Rob Walker
fa12a5f70b
kill rent calculator ( #6625 )
2019-10-30 16:25:12 -07:00
Justin Starry
d2d78a073f
Remove lingering references to base-2 SOLs ( #6629 )
...
automerge
2019-10-30 14:59:44 -07:00
TristanDebrunner
b4dc1a7263
Remove move feature ( #6605 )
...
automerge
2019-10-29 17:14:07 -07:00
Rob Walker
a587d05098
fix re delegate ( #6603 )
2019-10-29 14:42:45 -07:00
TristanDebrunner
489dc657c6
Update libra to new fork ( #6523 )
...
* Update to new libra branch
* Use core and association addresses
2019-10-29 10:39:10 -07:00
dependabot-preview[bot]
30c0a7d069
Bump serde from 1.0.101 to 1.0.102 ( #6581 )
...
automerge
2019-10-28 09:19:39 -07:00
dependabot-preview[bot]
73dd5aa2d1
Bump serde_derive from 1.0.101 to 1.0.102 ( #6582 )
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.101 to 1.0.102.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.101...v1.0.102 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-28 08:24:13 -07:00
Dan Albert
73c31d873e
Update Cargo.toml versions from 0.20.0 to 0.21.0 ( #6568 )
2019-10-25 17:40:49 -06:00
Jack May
d68e2c4d06
Revert "Make instruction data opaque to runtime ( #6470 )" ( #6564 )
...
This reverts commit 6eeca9c6f1
.
2019-10-25 16:22:41 -07:00
Jack May
6eeca9c6f1
Make instruction data opaque to runtime ( #6470 )
2019-10-24 22:38:57 -07:00
Rob Walker
b4119c454a
credit_only credits forwarding ( #6509 )
...
* credit_only_credits_forwarding
* whack transfer_now()
* fixup
* bench should retry the airdrop TX
* fixup
* try to make bench-exchange a bit more robust, informative
2019-10-23 22:01:22 -07:00
Jack May
ddefc96433
Limit deserialization of program inputs ( #6522 )
2019-10-23 19:56:07 -07:00
Greg Fitzgerald
9232057e95
Rename replicator to archiver ( #6464 )
...
* Rename replicator to archiver
* cargo fmt
* Fix grammar
2019-10-21 11:29:37 -06:00
Rob Walker
e2c316d2d0
system_instruction_processor updates ( #6448 )
...
* zero lamport account creation
* whack create_user_account, take 2
* target->to
* ..
* ..
* update chacha golden
* update chacha golden
* ..
* ..
2019-10-19 18:23:27 -07:00