c54b23b9d5
Additional tests for should_retransmit_and_persist ( #6062 ) ( #6070 )
...
automerge
2019-09-24 17:48:39 -07:00
04aaa714e6
Revert back to reqwest, using rustls feature (bp #6041 ) ( #6064 )
...
automerge
2019-09-24 15:35:07 -07:00
2cc0ab2c5f
Tweak Bank Slot Distance graph
2019-09-24 14:52:50 -07:00
aac0d7f2f5
Window service is filtering out coding shreds ( #6052 ) ( #6059 )
...
automerge
2019-09-24 13:48:13 -07:00
9fd29b0575
Fix vote metrics ( #6038 ) ( #6040 )
...
automerge
2019-09-24 13:20:27 -07:00
6abe3c2804
Fix race between observing tick height being set to last tick and blockhash being observed on a bank ( #6013 ) ( #6056 )
...
automerge
2019-09-24 12:20:46 -07:00
01ce5beb19
Support primordial accounts with no data ( #6053 ) ( #6055 )
...
automerge
2019-09-24 11:52:57 -07:00
2bd72318f6
Remove dead code from cluster_info ( #6051 ) ( #6054 )
...
automerge
2019-09-24 11:29:52 -07:00
68a9224604
Fix race between observing tick height being set to last tick and blockhash being observed on a bank ( #6013 )
2019-09-24 11:16:24 -07:00
181cad233c
rename balance ( #5984 )
2019-09-24 11:15:15 -07:00
0b66529f11
Fix BPF program static linking ( #5992 ) ( #6049 )
...
automerge
2019-09-24 09:40:33 -07:00
e20e4180a9
Flip order of arg to ensure -t sticks
2019-09-23 22:21:12 -07:00
de4309a905
Avoid hardlinking as that confuses tar ( #6042 ) ( #6045 )
...
(cherry picked from commit 7fa809c16d
)
2019-09-23 21:40:09 -07:00
d5248c936f
Skip considering banks older than the latest vote slot ( #6037 ) ( #6043 )
...
automerge
2019-09-23 20:44:47 -07:00
40bc37266d
Don't recover coding shreds ( #6034 ) ( #6039 )
...
automerge
2019-09-23 18:35:50 -07:00
1819f263f1
' => " ( #6035 ) ( #6036 )
...
automerge
2019-09-23 17:31:05 -07:00
24a055e490
Upgrade to ReedSolomon 4.0 release ( #6026 ) ( #6030 )
...
automerge
2019-09-23 15:29:52 -07:00
dfbd77f18d
Fix really old banks triggering log spam ( #6025 ) ( #6029 )
...
automerge
2019-09-23 15:27:38 -07:00
7c5557d69b
Dump tar stdout/err on failure for better debug ( #6024 ) ( #6027 )
...
automerge
2019-09-23 13:57:39 -07:00
d180eedd17
Remove the _/deps symlink, just copy instead ( #6020 ) ( #6021 )
...
automerge
2019-09-23 09:50:07 -07:00
3b274ca8db
GitBook: [v0.19] 79 pages and 12 assets modified
2019-09-23 03:38:36 +00:00
aacead62c0
Move images from img/ to .gitbook/assets
2019-09-21 22:26:45 -07:00
ae5a6a06bb
Revert "GitBook: [master] 156 pages and 8 assets modified"
...
This reverts commit 60320e6b6e
.
2019-09-21 22:24:11 -07:00
60320e6b6e
GitBook: [master] 156 pages and 8 assets modified
2019-09-22 04:31:10 +00:00
169ece8226
Rename client.sh to bench-tps.sh ( #6014 )
2019-09-21 21:12:10 -07:00
5020a4aa6b
Add required port to --entrypoint arg in docs. ( #6015 )
2019-09-21 21:12:01 -07:00
4c49566a89
Enable nvidia persistence mode on instance reboots
2019-09-21 10:45:20 -07:00
ab60c578b9
Unconditionally redeploy the edge testnet hourly to better exercise snapshot restarts
2019-09-21 09:28:59 -07:00
050021cf77
Add SVGs for Gitbook ( #6009 )
2019-09-21 07:59:36 -07:00
8240d1fe0a
Confidence implementation ( #5993 )
...
* Change confidence parameters
* Add status_cache_ancestors to get all relevant ancestors of a bank including roots from status cache
* Fix and add tests
* Clippy
2019-09-20 19:38:56 -07:00
fd6e7020eb
Fix bank overlapping another bank's broadcast ( #6012 )
2019-09-20 19:37:40 -07:00
261b869e27
Update book links to gitbook
2019-09-20 16:06:36 -07:00
d6d5b4429c
Remove \r
2019-09-20 16:04:55 -07:00
67d7375ab9
Add more descriptive error on a stuck blockhash ( #6010 )
...
automerge
2019-09-20 15:50:43 -07:00
020d34187c
Fetch logs on redeploy failure
2019-09-20 15:45:47 -07:00
5486e4c364
Inline BPF log functions ( #6007 )
2019-09-20 15:40:41 -07:00
33e2af341a
Add deps/ symlink so solana-validator-cuda can find native programs
2019-09-20 15:26:49 -07:00
cca08c3923
Sort terminology in book ( #6008 )
2019-09-20 15:16:35 -07:00
bb9f07183b
Only fetch logs on sanity failure
2019-09-20 14:47:56 -07:00
22e807c212
Bump jsonrpc-ws-server from 13.1.0 to 13.2.0 ( #5976 )
...
Bumps [jsonrpc-ws-server](https://github.com/paritytech/jsonrpc ) from 13.1.0 to 13.2.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v13.1.0...v13.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-20 15:16:59 -06:00
a60a3efc1a
Revert "require stake, vote and executable accounts to be rent exempt ( #5928 )" ( #6005 )
...
This reverts commit 11e6197a83
.
2019-09-20 14:10:39 -07:00
558a362c46
Replace blob with shred in book ( #6004 )
2019-09-20 13:27:09 -07:00
19ae556857
hash account state on store ( #5573 )
2019-09-20 13:21:12 -07:00
5dd3a07a23
Avoid changing the current working directory
2019-09-20 12:46:29 -07:00
58a6c9a5f0
Adjust path to perf-libs
2019-09-20 12:27:09 -07:00
7053978861
Fix cp src
2019-09-20 12:15:05 -07:00
3d44cffcda
✨ Beautify metrics datapoint logging ( #5998 )
2019-09-20 12:00:43 -07:00
4b1de02bbb
solana-validator-cuda wrapper is now net.sh compatible
2019-09-20 11:37:45 -07:00
078a3aeccd
Properly build solana-validator-cuda ( #5999 )
2019-09-20 11:36:57 -07:00
abaccd6882
Pull in Rust-BPF v0.1.6 ( #5997 )
...
automerge
2019-09-20 11:21:01 -07:00
3fe54206aa
Btc spv - variable int improvements ( #5990 )
...
* var_int tests
* variable int fix
* moved tests
2019-09-20 10:57:57 -06:00
debee350f8
Remove whitespace
2019-09-20 08:20:19 -07:00
890be36fd3
Fix check
2019-09-20 08:19:57 -07:00
c9be9acd14
log snapshot time ( #5996 )
2019-09-20 08:03:00 -07:00
8eab673b1c
Bump serde from 1.0.100 to 1.0.101 ( #5994 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.100 to 1.0.101.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-20 07:05:16 -06:00
e5806d07a6
Bump jsonrpc-pubsub from 13.1.0 to 13.2.0 ( #5995 )
...
Bumps [jsonrpc-pubsub](https://github.com/paritytech/jsonrpc ) from 13.1.0 to 13.2.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v13.1.0...v13.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-20 07:04:14 -06:00
11e6197a83
require stake, vote and executable accounts to be rent exempt ( #5928 )
...
* require vote account to be exempt
* make stake account rent exempt
* add rent exempted system instruction
* use rent exemption instruction in vote and stake api
* use rent exempted account while creating executable account
* updating chacha golden hash as instruction data has changed
* rent will be initialized for genesis bank too
2019-09-20 16:52:17 +05:30
accd49f2e4
Remove unneeded --all
2019-09-19 23:30:08 -07:00
54cf9aaa1e
Preserve public network flag when testnet-edge is restarted
2019-09-19 23:02:47 -07:00
8bbc8343ff
Place verison.yml in the right location
2019-09-19 22:41:27 -07:00
a4e72ac037
Avoid airdropping to a validator that's already configured
2019-09-19 22:33:41 -07:00
1d0be265d9
Add explicit validator-cuda crate ( #5985 )
2019-09-19 20:50:34 -07:00
d379786c90
Fix bind errors ( #5986 )
...
* Add ability to bind to a common tcp/udp port
* Extend port range for local-net sanity and fix validator executable
2019-09-19 17:16:22 -07:00
ca9d4e34df
Broadcast stage tuning ( #5989 )
2019-09-19 16:29:52 -07:00
6657312f44
dyn for runtime benches ( #5983 )
2019-09-19 14:21:09 -07:00
2636a9c9f1
Add script for managing colo resourse ala gce.sh ( #5854 )
...
automerge
2019-09-19 14:08:22 -07:00
05ada97d00
Clean up log folding
2019-09-19 13:44:59 -07:00
4c54245969
net/gce.sh: Sync cloud_CreateInstances docs and usage ( #5982 )
...
automerge
2019-09-19 13:28:25 -07:00
5157bdd8ce
Bump jsonrpc-http-server from 13.1.0 to 13.2.0 ( #5975 )
...
Bumps [jsonrpc-http-server](https://github.com/paritytech/jsonrpc ) from 13.1.0 to 13.2.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v13.1.0...v13.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-19 13:10:54 -06:00
8fa28f965c
clear config ( #5980 )
2019-09-19 12:10:29 -07:00
51b3451e20
feat: use redis version 5+ via ppa:chris-lea ( #5981 )
2019-09-19 12:04:06 -07:00
fee5c6c057
testnet-edge/testnet-beta now update while preserving the ledger ( #5979 )
...
* Check if an update is current before deploying it again
* Add (new) update command to deploy testnet updates
* Add --deploy-if-newer flag to permit conditional net updates
2019-09-19 12:03:47 -07:00
9917ece826
Kill the old blockexplorer harder
2019-09-19 10:37:27 -07:00
8d94972d88
Publish version information as stand-alone file for easy access
2019-09-19 10:26:51 -07:00
5cbd1190b2
transaction batch ( #5962 )
...
* transaction batch
* fixup
2019-09-19 10:06:08 -07:00
1a71804ef2
Bump bs58 from 0.2.5 to 0.3.0 ( #5974 )
...
Bumps [bs58](https://github.com/mycorrhiza/bs58-rs ) from 0.2.5 to 0.3.0.
- [Release notes](https://github.com/mycorrhiza/bs58-rs/releases )
- [Commits](https://github.com/mycorrhiza/bs58-rs/compare/0.2.5...0.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-19 10:39:37 -06:00
1650519962
SOLANA_CUDA=1 works again ( #5968 )
...
* SOLANA_CUDA=1 works again
* Minor comment reformat
* Set SOLANA_CUDA=1 explictly
2019-09-19 08:52:00 -07:00
355564e486
net/net.sh start --skip-setup ...
now works again (#5977 )
2019-09-19 08:31:22 -07:00
1e3543e953
Ignore tests ( #5972 )
2019-09-18 23:57:50 -07:00
e83f6332bf
Bump serde_derive from 1.0.100 to 1.0.101 ( #5945 )
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.100 to 1.0.101.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-18 21:29:40 -07:00
0dbf7995b5
Remove unnecessary serialize of shred data ( #5967 )
...
* Remove unnecessary serialize of shred data
* remove obsolete code
* fix golden hash
2019-09-18 20:08:27 -07:00
0d16db2d1b
Remove bloat due to test symbols ( #5965 )
2019-09-18 19:54:10 -07:00
10565277d6
btc-spv transaction parsing ( #5858 )
...
* Transaction and input parsing/decoding + utils
* Transaction input & output parsing
* public struct members, tx parsing test
* format and clippy fixes
* update block data/test material fetching utils
* update tx parsing tests
* format changes
* rename for consistency
2019-09-18 20:30:27 -06:00
e0858cfe06
Add parallel shred signing to shredder ( #5964 )
2019-09-18 18:00:07 -07:00
48d754220b
Add verifying snapshots book entry ( #5885 )
2019-09-18 17:19:19 -07:00
958cbe688b
Dump debug version of BPF shared object ( #5937 )
2019-09-18 16:34:22 -07:00
783e8672e7
Removed Shred enum ( #5963 )
...
* Remove shred enum and it's references
* rename ShredInfo to Shred
* clippy
2019-09-18 16:24:30 -07:00
d93b552e8c
move cluster economics to implemented ( #5953 )
2019-09-18 16:17:42 -07:00
365fe70f77
Delete dead code ( #5948 )
2019-09-18 16:09:10 -06:00
6c4e656795
Remove obsoleted code from shred ( #5954 )
...
* Remove obsoleted code from shred
* fix broken test
2019-09-18 13:56:44 -07:00
86213d38fe
Release builds for local cluster tests ( #5891 )
...
* Release builds for test
* Remove setting thread count in local cluster
* Increase timeout
* Move local cluster to separate job
* Extract out local cluster test from bench-tps
* Make local cluster inaccessible from outside crate
* Update test-stable.sh to exclude local_cluster in stable, include it in local-cluster CI job
* Move bench-exchange to local cluster
* Remove local cluster from coverage
2019-09-18 13:10:50 -07:00
b757294864
Add minor performance bump to shredding ( #5956 )
2019-09-18 12:35:52 -07:00
8b99e6dfbe
Narrow wildcard matching for solana tarball ( #5950 )
2019-09-18 12:28:13 -07:00
0d4a2c5eb0
simplify poh recorder => broadcast channel ( #5940 )
...
* simplify poh recorder broadcast channel
* fixup
* fixup
2019-09-18 12:16:22 -07:00
64f23ab26a
Remove old accepted design proposals ( #5951 )
...
* remove passive-stake-delegation-and-rewards from summary
* Delete passive-stake-delegation-and-rewards.md
2019-09-18 12:01:16 -07:00
31a276b628
Bump jsonrpc-core from 13.1.0 to 13.2.0 ( #5894 )
...
Bumps [jsonrpc-core](https://github.com/paritytech/jsonrpc ) from 13.1.0 to 13.2.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v13.1.0...v13.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-18 11:44:47 -06:00
742562fc2e
Set maintenance policy to terminate and restart for GCE ( #5935 )
2019-09-18 10:38:38 -07:00
ce65604154
Rewrite wallet sanity test to use the ping command ( #5946 )
...
automerge
2019-09-18 10:03:54 -07:00
75c0a268e0
Bump jsonrpc-derive from 13.1.0 to 13.2.0 ( #5893 )
...
Bumps [jsonrpc-derive](https://github.com/paritytech/jsonrpc ) from 13.1.0 to 13.2.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v13.1.0...v13.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-18 10:48:37 -06:00
badcb8b0e3
Clarify runtime vs program rules ( #5934 )
...
* Clarify runtime vs program rules
And define "smart contract"
* Apply review feedback
* Rename secret key to private key
* Rename pubkey to public key in book
"pubkey" is a great shorthand in code, but it's not common in the
industry or something we want to spend time explaining to users.
2019-09-18 10:47:50 -06:00
c48c9be913
Add solana-cli uptime subcommand ( #5944 )
...
automerge
2019-09-18 09:29:57 -07:00
92295dea4f
Exit cleanly with error message when the user supplies a bad cluster entrypoint ( #5947 )
...
automerge
2019-09-18 08:44:22 -07:00
76223f5ae7
Print airdrop request in proper units ( #5941 )
...
* Make airdrop msg units consistent
* Make sol prints prettier
2019-09-17 23:59:35 -06:00
ea015ccbe8
Update Gitbook YAML to add summary
2019-09-17 20:50:15 -06:00
2f50d0e145
Refactor confidence from replay stage ( #5938 )
2019-09-17 19:43:40 -07:00
268beb3489
Revert "GitBook: [master] 82 pages and 4 assets modified"
...
This reverts commit 20d13f51a9
.
2019-09-17 20:39:15 -06:00
20d13f51a9
GitBook: [master] 82 pages and 4 assets modified
2019-09-18 02:22:18 +00:00
ffdf36c65b
remove grants from inflation ( #5936 )
2019-09-17 18:52:39 -07:00
ff608992ee
Replace Shred usage with ShredInfo ( #5939 )
...
* Replace Shred usage with ShredInfo
* Fix tests
* fix clippy
2019-09-17 18:22:46 -07:00
7e31a67d81
Ignore release branches that exist only for gitbook
2019-09-17 15:31:13 -07:00
c0ec2ca27a
Add gitbook configuration
2019-09-17 15:20:19 -07:00
a2595b44c6
test randomize with error ( #5916 )
...
* test randomize with error
* update magic numbers
* fixup
* fixup
* fixup
* no more blobs
* fixup
2019-09-17 15:11:29 -07:00
180f415736
Update release instructions ( #5933 )
2019-09-17 14:01:33 -07:00
6541d9fbb0
Bump hex from 0.3.2 to 0.4.0 ( #5930 )
...
Bumps [hex](https://github.com/KokaKiwi/rust-hex ) from 0.3.2 to 0.4.0.
- [Release notes](https://github.com/KokaKiwi/rust-hex/releases )
- [Commits](https://github.com/KokaKiwi/rust-hex/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-17 14:04:28 -06:00
de4f564780
fix test name ( #5932 )
2019-09-18 01:14:44 +05:30
14cb6353c0
Change erasure ratio to 0.25 and increase data shreds to 16 ( #5931 )
...
* Change erasure ratio to 0.25 and increase data shreds to 16
* Fix case where no coding shreds are requested
2019-09-17 11:59:14 -07:00
9e680112e7
Exclude GitBook synchronization commits from CI ( #5929 )
2019-09-17 11:15:21 -07:00
c90595cba1
Cleanup nits ( #5914 )
2019-09-17 10:21:22 -07:00
de1636c792
Enable --limit-ledger-size on testnets ( #5927 )
...
automerge
2019-09-17 10:05:41 -07:00
e26f68fe62
Get transactions from LockedAccountsResults when possible ( #5923 )
2019-09-17 08:41:56 -07:00
39ba9cb489
fix broken link to rent description ( #5925 )
2019-09-17 07:21:57 -07:00
08d4570ce5
Bump sys-info from 0.5.7 to 0.5.8 for rayon-threadlimit ( #5924 )
2019-09-17 07:21:16 -07:00
084706c5ea
Bump pretty-hex from 0.1.0 to 0.1.1 ( #5926 )
...
Bumps [pretty-hex](https://github.com/wolandr/pretty-hex ) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/wolandr/pretty-hex/releases )
- [Commits](https://github.com/wolandr/pretty-hex/compare/v0.1.0...v0.1.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-17 07:20:39 -07:00
d63518a835
Rent tangential stuff ( #5910 )
...
* rename rent.rs to rent_calculator.rs
* add rent sysvar
* integrate rent_calculator with bank
* rent_calculator integration with genesis
* add test for rent sysvar
2019-09-17 17:12:55 +05:30
b31d334ef4
update economics section to provide detail on expected inflation parameters ( #5615 )
2019-09-17 10:39:23 +02:00
5c4c562a2d
Update validator-stake.md ( #5922 )
...
* Update validator-stake.md
* Update validator-stake.md
2019-09-16 21:54:44 -07:00
f10438d530
Respect randomized transaction order when unlocking accounts ( #5918 )
2019-09-16 21:45:16 -07:00
7459eb15c3
A new data-structure in shreds for partial deserialization ( #5915 )
...
* A new datastructure in shreds for partial deserialization
* fix chacha golden hash
* fix clippy and address review comments
2019-09-16 20:28:54 -07:00
c44e7ce184
Leaders should not broadcast to replicators ( #5917 )
2019-09-16 17:56:34 -07:00
bd19fe5909
add custodian to stake ( #5900 )
...
* add custodian to stake
* nits
2019-09-16 17:47:42 -07:00
82615c703b
Switch erasure to solana-reed-solomon-erasure ( #5913 )
...
* Switch to solana-reed-solomon-erasure
* Disable Rayon for solana-reed-solomon-erasure
2019-09-16 16:14:55 -07:00
bc2141fbe0
Bump ureq from 0.11.0 to 0.11.1 ( #5905 )
...
Bumps [ureq](https://github.com/algesten/ureq ) from 0.11.0 to 0.11.1.
- [Release notes](https://github.com/algesten/ureq/releases )
- [Commits](https://github.com/algesten/ureq/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-16 16:51:45 -06:00
f5964b4f3c
unable to reproduce linkage issue ( #5912 )
2019-09-16 14:35:58 -07:00
d5ba90d375
Don't verify blobs that are less than root in window service ( #5901 )
2019-09-16 13:13:53 -07:00
167adff22c
Strip ELF files ( #5898 )
2019-09-16 11:11:33 -07:00
5f54573613
More shred related cleanup ( #5909 )
...
* More shred related cleanup
* fix uncle
2019-09-16 10:28:28 -07:00
2b43b117dc
Demote vote-native datapoint from warn to info ( #5911 )
2019-09-16 10:12:55 -07:00
1aec9e38fa
Restore default time range to now-5m
2019-09-16 08:45:27 -07:00
c1880e3f3e
Reduce number of shreds per FEC block ( #5908 )
2019-09-15 10:37:12 -07:00
c490a50c91
Restore blocktree_error graph
2019-09-14 21:41:48 -07:00
ee791e2e3e
Optimizations to shred writing and signing ( #5890 )
...
* Optimizations to shred writing and signing
* fix broken tests
* fixes
2019-09-14 21:05:54 -07:00
140d4ccf77
Add dead slot table to stablity section
2019-09-14 20:54:23 -07:00
ceacc42126
Call gpu init earlier to force compilation. ( #5902 )
2019-09-14 12:32:57 -07:00
a6479eb6e9
Data points are now logged according to their level, instead of always debug! ( #5906 )
...
Note that Counters remain at debug! to avoid excessive default logging
2019-09-14 08:52:09 -07:00
84c8a5bbec
Add replay-stage-mark_dead_slot datapoint ( #5907 )
2019-09-14 08:50:53 -07:00
e1f4e8a84a
Add solana-crate-features workaround to avoid cargo feature thrashing ( #5904 )
...
automerge
2019-09-13 23:46:21 -07:00
8135279335
Reduce serialize/deserialize in shred recovery ( #5887 )
2019-09-12 21:52:13 -07:00
5dceeec1ca
Add authorize_staker functionality ( #5880 )
...
* Add authorized_staker functionality
* Generalize authorize names; implement for Lockup
* Fix authorize() usage and improve tests
2019-09-12 20:03:28 -06:00
8f5a1535af
Add mnenomic keypair generation and recovery to cli ( #5889 )
...
* Add mnenomic keypair generation and recovery to cli
* Use password input to retrieve mnemonic phrase
* Direct users without keypair file to use solana-keygen
2019-09-12 18:37:29 -07:00
92a5979558
net/config/ is now shellcheck compliant ( #5888 )
...
automerge
2019-09-12 16:11:13 -07:00
8b64de0a3c
Add restart-explorer script, to easily restart the network explorer on a testnet ( #5886 )
2019-09-12 15:12:10 -07:00
9c30e98df6
Fix cargo lock ( #5881 )
2019-09-12 12:07:06 -07:00
c1d788880d
Limit Rayon threadpool threads ( #5871 )
2019-09-12 11:39:39 -07:00
385086359c
Reduce serializations/deserializations of shreds ( #5879 )
2019-09-12 10:10:25 -07:00
176c7d8b13
Pull all the Rust BPF tests into a single workspace so they share dependencies ( #5878 )
2019-09-11 14:55:58 -07:00
a85604b2ba
Bump sys-info from 0.5.7 to 0.5.8 ( #5877 )
...
Bumps [sys-info](https://github.com/FillZpp/sys-info-rs ) from 0.5.7 to 0.5.8.
- [Release notes](https://github.com/FillZpp/sys-info-rs/releases )
- [Commits](https://github.com/FillZpp/sys-info-rs/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-11 10:53:23 -07:00
bf1ecc2441
Remove ledger verification, it's racy and essentially globaly disabled already ( #5867 )
2019-09-11 10:53:10 -07:00
92d2452f33
redelegate stake ( #5868 )
...
* redelegate stake
* boil this down to just delegate(), which can be offered any number of times
2019-09-11 09:48:29 -07:00
1853771930
Add support for SDK sysvar types ( #5876 )
2019-09-10 18:53:02 -07:00
772ee4b29d
Add num_lamports_per_account as a configurable argument ( #5869 )
2019-09-10 16:24:43 -07:00
c62a4a1c13
Interpret Solana-CLI amount requests in SOL by default ( #5866 )
...
automerge
2019-09-10 16:16:40 -07:00
008dcd71b9
BPF loader message nits ( #5870 )
2019-09-10 16:13:23 -07:00
ee4266bc59
Remove banks in locktower not in bank_forks ( #5837 )
...
* Remove unnecessary calculations from collect_vote_lockouts
* Add test for locktower startup from snapshot
2019-09-10 13:58:27 -07:00
294d531e0b
Bump serde_derive from 1.0.99 to 1.0.100 ( #5864 )
...
automerge
2019-09-10 13:31:11 -07:00
e05f8faa74
Print account balances in SOL by default ( #5857 )
...
* Print account balances in SOL by default
* Review comments
* Fix wallet-sanity
2019-09-10 13:36:59 -06:00
fc4aa71193
GCE-based nodes now reboot on maintenance events instead of terminating ( #5861 )
2019-09-10 12:30:06 -07:00
0d7efe5176
Bump serde from 1.0.99 to 1.0.100 ( #5862 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.99 to 1.0.100.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-10 12:27:41 -07:00
b426dfb2c0
Change tx batching in banking process and record ( #5832 )
...
* Change tx batching in banking process and record
* Change batching to reduce impact on replay stage
2019-09-10 11:04:03 -07:00
fd33b27af1
Fix coding shred generator ( #5865 )
2019-09-10 09:35:07 -07:00
39f89e5a56
Fix bench clients reading primordial account files ( #5860 )
...
* Fix bench-tps balance lookup
* Also fix bench-exchange
2019-09-09 19:48:43 -07:00
b881029de3
make voter_pubkey a function of epoch ( #5830 )
...
* make voter_pubkey a function of epoch
* fixups
2019-09-09 18:17:32 -07:00
7682db4826
Generate coding shreds on the fly based on erasure limits ( #5852 )
...
* Generate coding shreds on the fly based on erasure limits
* fix uncle
2019-09-09 17:26:51 -07:00
61fe1aa9cf
SDK cleanup to reduce featurization ( #5856 )
2019-09-09 16:38:52 -07:00
468095ede2
Update project to use new account serialization format ( #5848 )
2019-09-09 16:17:10 -07:00
9dc5da7dbd
net/net.sh: Add flag to skip build ( #5853 )
...
automerge
2019-09-09 15:40:12 -07:00
a18cd29411
Remove unsigned division from FeeCalculator ( #5851 )
2019-09-09 15:07:32 -07:00
b13c690f0c
Bump indicatif from 0.11.0 to 0.12.0 ( #5844 )
...
automerge
2019-09-09 12:26:34 -07:00
a7fd726872
Bump console from 0.8.0 to 0.9.0 ( #5843 )
...
Bumps [console](https://github.com/mitsuhiko/console ) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/mitsuhiko/console/releases )
- [Commits](https://github.com/mitsuhiko/console/compare/0.8.0...0.9.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-09 11:15:24 -07:00
6a082d2310
Bump cc from 1.0.41 to 1.0.45 ( #5842 )
...
Bumps [cc](https://github.com/alexcrichton/cc-rs ) from 1.0.41 to 1.0.45.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases )
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.41...1.0.45 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-09 11:15:13 -07:00
a317e9513f
Add sysvar support ( #5838 )
2019-09-09 10:55:35 -07:00
ee0c570d54
Rework solana-validator-cuda to automatically prepare the perf-libs env ( #5849 )
...
automerge
2019-09-08 21:20:08 -07:00
7607800d47
Refactor restart function in local cluster to support separate exit and restart functions ( #5845 )
2019-09-08 17:53:34 -07:00
b35c022629
More types ( #5846 )
...
automerge
2019-09-08 11:13:59 -07:00
11cec8f24e
Move appveyor off the system drive
2019-09-08 10:05:58 -07:00
df205f8752
Use ureq instead of influx_db_client ( #5839 )
2019-09-07 12:48:45 -07:00
affcb5ec43
remove hashmap from stake_history ( #5834 )
2019-09-07 10:33:06 -07:00
bdda79343e
scripts/cargo-install-all.sh: Ensure solana-genesis
is built last ( #5827 )
...
Workaround for #5826
2019-09-06 20:00:24 -07:00
1833db51a5
Cleanup program account def ( #5833 )
2019-09-06 17:32:14 -07:00
81c36699c4
Add support for BPF program custom errors ( #5743 )
...
* Add support for BPF program custom errors
* Rename SOL_SUCCESS -> SUCCESS
2019-09-06 16:05:01 -07:00
d3052d094c
fmt does not work with cfg_if ( #5829 )
2019-09-06 15:33:58 -07:00
4c4b7d39b8
Cleanup program's ProcessInstruction ( #5828 )
2019-09-06 14:44:41 -07:00
e8d88f3237
Split SDK's timing.rs ( #5823 )
2019-09-06 14:30:56 -07:00
cc8575dd96
multinode-demo/validator.sh: Don't exit from kill_node
( #5825 )
...
That's `kill_node_and_exit`'s job
2019-09-06 15:08:30 -06:00
f28782cb84
Bump chrono from 0.4.8 to 0.4.9 ( #5775 )
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.8 to 0.4.9.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/master/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/commits/v0.4.9 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-06 13:55:36 -06:00
c58e7dd631
[Security] Bump blake2 from 0.8.0 to 0.8.1 ( #5824 )
...
Bumps [blake2](https://github.com/RustCrypto/hashes ) from 0.8.0 to 0.8.1. **This update includes a security fix.**
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/blake2-v0.8.0...sha1-v0.8.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-06 13:55:06 -06:00
d9817c153a
Switch programs to use Pubkey from SolPubkey ( #5821 )
2019-09-06 12:40:01 -07:00
6057768fdc
Support arbitrary account creation in genesis ( #5799 )
2019-09-06 23:45:23 +05:30
4a20c2aa1b
add stake and vote errors ( #5814 )
...
* add stake errors
* remove self from type_of
* sheesh
* better
* add stake errors
* update wallet error handling
* fixup
2019-09-06 10:55:03 -07:00
e5f902369c
Rust BPF programs depend on Solana SDK ( #5819 )
2019-09-06 09:20:14 -07:00
1f9fde5f7b
ThinClient internal name grooming ( #5800 )
2019-09-06 09:07:40 -07:00
c3782082bc
Add retries to smooth over ThinClient internal experiments ( #5813 )
2019-09-06 07:24:04 -07:00
a452249bf3
Use retain on Packets instead of creating new ones ( #5804 )
...
* Use remove on Packets instead of creating a new one
* Fix compile after rebase
2019-09-05 19:16:18 -07:00
3d3b03a123
Verify signature of recovered shred before adding them to blocktree ( #5811 )
...
* Verify signature of recovered shred before adding them to blocktree
* fix failing tests, and review comments
2019-09-05 18:20:30 -07:00
719c03d33f
Update stake-delegation-and-rewards.md ( #5801 )
2019-09-05 17:48:40 -07:00
609b18c2cd
multinode-demo/validator.sh: Correct new_genesis_block()
logic ( #5812 )
...
automerge
2019-09-05 16:14:15 -07:00
5279b83d34
multinode-demo/validator.sh: Sync CLI options with solana-validator ( #5810 )
...
automerge
2019-09-05 14:57:35 -07:00
05d2eec45c
Remove unnecessary erasure config references ( #5809 )
2019-09-05 14:46:41 -07:00
0cbc0dc79c
Update solana validator-info commands for testnets ( #5806 )
2019-09-05 13:20:38 -07:00
9210f40c38
Update RELEASE.md
2019-09-05 14:34:52 -04:00
3237e897d7
Adjust packet batching post-decoupling from blobs ( #5783 )
2019-09-05 11:22:39 -07:00
f1110f2e85
Ignore test_snapshots_blocktree_floor ( #5798 )
...
automerge
2019-09-05 10:49:19 -07:00
5ffb6b874b
cli: get command now shows default values instead of 'not set' ( #5796 )
...
* get command now shows default values instead of 'not set'
* Add default indicator
2019-09-05 10:14:23 -07:00
c4a5442146
Confirm validator ports are reachable by the entrypoint at startup ( #5795 )
2019-09-04 23:10:35 -07:00
bd74e63702
Offload remaining confidence cache computation to separate thread ( #5792 )
...
* Move remaining confidence cache computation to separate thread
* Move confidence cache out of bank forks
2019-09-04 23:10:25 -07:00
f78b865cba
Cleanup shreds to remove FirstShred data structure ( #5789 )
...
* Cleanup shreds to remove FirstShred data structure
* Also reduce size used by parent slot information in shred header
* clippy
* fixes
* fix chacha test
2019-09-04 21:06:47 -07:00
7062fe4b47
Refactor Blocktree for clarity and correctness ( #5700 )
...
* Refactor shreds to prevent insertion of any metadata on bad shreds
* Refactor fetching Index in blocktree
* Refactor get_slot_meta_entry
* Re-enable local cluster test
* cleanup
* Add tests for success/fail insertion of coding/data shreds
* Remove assert
* Fix and add tests for should_insert coding and data blobs
2019-09-04 17:14:42 -07:00
b6da5a3f47
build all tests ( #5785 )
...
* build all tests
* try again
* try again
2019-09-04 17:01:38 -07:00
5fb2d7a98f
Add libstd support to Rust BPF ( #5788 )
2019-09-04 16:00:11 -07:00
ceaf4781b0
Pull in rbpf v0.1.15 ( #5787 )
2019-09-04 14:37:51 -07:00
933e835838
add stake lockup ( #5782 )
...
* add stake lockup
* fixup
2019-09-04 13:34:09 -07:00
94eb78d399
Update stake-delegation-and-rewards.md ( #5774 )
2019-09-04 13:19:05 -07:00
02ee2a601c
Further cleanup of blocktree after Blob deprecation ( #5780 )
2019-09-04 12:47:09 -07:00
b19d9a50d3
Transition to ureq http client ( #5777 )
...
* Transition to ureq http client
* Remove unwrap
2019-09-04 12:11:44 -07:00
355640b5db
increase stake warmup cooldown rate to 0.25 ( #5772 )
2019-09-04 10:57:42 -07:00
dfa6238342
Remove unnecessary construction of descendants ( #5742 )
2019-09-04 01:49:42 -07:00
3b0d48e3b8
Remove blocktree blob references ( #5691 )
...
* Remove blocktree blob references
* fixes and cleanup
* replace uninitialized() call with MaybeUninit
* fix bench
2019-09-03 21:32:51 -07:00
2b696ac8dc
Bitcoin Payment Verification Program ( #5153 )
...
* btc_spv program directories
* add spv-instruction spv-state
* added spv_processor file
* cargo.tomls - bump versions, rm unneccessary deps
* add btc_spv_bin and top lvl workspace entry
* hex_decode util & errors
* add header parsing test
* update dependencies
* rustfmt
* refactor Requests
* fix dependencies/versions
* clippy fixes
* test improvements
* add gitignores
Add framework for the rest of the BTC-SPV stuff to be built on top of. This PR defines the components, data structures, accessors, etc. but is not quite complete. It still needs the headerstore component finished along with some of the validation utils, hashing stuff, and more tests.
2019-09-03 19:16:02 -06:00
8362b408d9
Move testnet ssh key ( #5770 )
...
* Factor out hardcoded testnet ssh key path
* Build/create test net ssh key path
* Rename testnet ssh dir
* Give testnetSSHDir a more generic name
* shellcheck
* favor hardcoded paths over `paths.sh`
* Put instance-startup-complete stamp in the scratch dir as well
* Rename `/solana` > `/solana-scratch`
2019-09-03 18:51:16 -06:00
62f6a78ccd
Make data plane shred filter parallel again ( #5740 )
2019-09-03 21:50:57 +00:00
f7e039e7ac
Bump chrono from 0.4.7 to 0.4.8 ( #5761 )
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.7 to 0.4.8.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/master/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-03 14:49:48 -07:00
61bd14c40a
Bump rayon from 1.1.0 to 1.2.0 ( #5758 )
...
Bumps [rayon](https://github.com/rayon-rs/rayon ) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/rayon-rs/rayon/releases )
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md )
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.1.0...v1.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-09-03 13:39:58 -06:00
5dd85f1533
Propose design for rent ( #5160 )
...
* Create rent.md
* Update SUMMARY.md
* Update rent.md
* Update rent.md
* Update rent.md
* Update rent.md
* Update rent.md
* Update rent.md
* Update rent.md
* Update rent.md
* Update rent.md
2019-09-03 12:38:34 -07:00
0d20bc5e14
Move solana-validator-info into cli ( #5768 )
...
* Move solana-validator-info into cli
* Remove solana-validator-info and update docs
* Update test to use app()
2019-09-03 10:38:12 -07:00
a82754913f
Partner node setup tweaks ( #5715 )
...
automerge
2019-09-03 07:45:20 -07:00
5840e3bbdf
Decrease instruction count in BPF Rust SDK entrypoint helper ( #5760 )
2019-09-03 08:38:59 -04:00
e8ab599bae
Add keypair print ( #5766 )
...
automerge
2019-09-02 12:53:13 -07:00
85e5fbeb35
Add absoluteSlot to getEpochInfo ( #5765 )
2019-09-02 12:21:06 -07:00
475f6fe666
votes only need slots and the last bank hash ( #5499 )
...
churn
cleanup
reverse test slot hashes
test check_slots_are_valid
updates
only send the minimum bank vote difference
fixup! only send the minimum bank vote difference
some banks may not have a voting account setup
fixup! votes only need slots and the last bank hash
fixup! fixup! votes only need slots and the last bank hash
fmt
fixed compare
fixed vote
fixup! fixed vote
poke ci
filter the local votes via the last bank vote
2019-09-02 12:01:09 -07:00
9f354522a7
Make bench_tps_local_cluster tests serial ( #5762 )
...
-
2019-08-31 16:53:56 -07:00
0c2a49391a
Disable pinned gpu memory ( #5753 )
2019-08-31 16:44:07 -07:00
e3a6c9234a
Entrypoint RPC service discovery now blocks until the entrypoint is actually found ( #5756 )
...
automerge
2019-08-30 16:12:58 -07:00
6089c8030b
Validator/replicator metrics host id is no longer set by bash ( #5755 )
...
automerge
2019-08-30 15:33:30 -07:00
643d0b0868
Make the world flat again; remove utils/ subdirectory ( #5752 )
...
automerge
2019-08-30 11:57:39 -07:00
3cc5d8df7f
Mark global arguments as such ( #5751 )
...
automerge
2019-08-30 11:13:23 -07:00
34155fc36f
Long-running banking benchmark ( #5075 )
2019-08-30 11:10:32 -07:00
f840eefcbf
Bump bs58 from 0.2.4 to 0.2.5 ( #5747 )
...
Bumps [bs58](https://github.com/mycorrhiza/bs58-rs ) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/mycorrhiza/bs58-rs/releases )
- [Commits](https://github.com/mycorrhiza/bs58-rs/compare/0.2.4...0.2.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-30 11:41:41 -06:00
e1f3e33bfb
Bump jsonrpc-pubsub from 13.0.0 to 13.1.0 ( #5708 )
...
Bumps [jsonrpc-pubsub](https://github.com/paritytech/jsonrpc ) from 13.0.0 to 13.1.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v13.0.0...v13.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-30 11:40:58 -06:00
36fcb4fbca
Add trent's workstation pubkey to authorized keys script ( #5748 )
...
automerge
2019-08-30 10:13:55 -07:00
22667d64d1
Add various missing cli validators ( #5745 )
...
automerge
2019-08-30 09:27:35 -07:00
4786143524
Add a more helpful error on genesis block mismatch ( #5744 )
...
automerge
2019-08-30 09:10:22 -07:00
f78baf80e4
Move drone arguments under the airdrop command ( #5741 )
2019-08-29 20:45:53 -07:00
33e7e23484
Update ubuntu image
2019-08-29 14:40:08 -07:00
50214f059f
Pull in LLVM with stack location fixes ( #5732 )
2019-08-29 11:25:22 -07:00
57f778bcdb
Bump winapi from 0.3.7 to 0.3.8 ( #5705 )
...
Bumps [winapi](https://github.com/retep998/winapi-rs ) from 0.3.7 to 0.3.8.
- [Release notes](https://github.com/retep998/winapi-rs/releases )
- [Commits](https://github.com/retep998/winapi-rs/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-29 10:02:29 -06:00
c3f07eb85a
Bump jsonrpc-ws-server from 13.0.0 to 13.1.0 ( #5721 )
...
Bumps [jsonrpc-ws-server](https://github.com/paritytech/jsonrpc ) from 13.0.0 to 13.1.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v13.0.0...v13.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-29 09:12:02 -06:00
8adac30c05
Integrate shreds to the replicators ( #5711 )
...
* Integrate shreds to the replicators
* fix cuda stuff
* fix cuda tests
2019-08-28 22:34:47 -07:00
5a5a6b3840
Add Interchain SPV book section ( #5632 )
...
* Add Interchain SPV book section
* hyphenate interchain
* spv -> SPV
* improve header store explanation
* networks -> platforms
* bump spin subdep versions
2019-08-28 19:46:26 -06:00
2803eb0d72
Use LLVM's C builtins for BPF ( #5717 )
2019-08-28 17:19:40 -07:00
f41fb7d772
Ignore cargo audit advisory RUSTSEC-2019-0013 ( #5713 )
2019-08-28 14:38:46 -07:00
156399e8aa
Bump jsonrpc-http-server from 13.0.0 to 13.1.0 ( #5707 )
...
Bumps [jsonrpc-http-server](https://github.com/paritytech/jsonrpc ) from 13.0.0 to 13.1.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v13.0.0...v13.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-28 14:21:17 -06:00
5745a54d4c
Bump indexmap from 1.0.2 to 1.1.0 ( #5706 )
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.0.2 to 1.1.0.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Commits](https://github.com/bluss/indexmap/compare/1.0.2...v1.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-28 14:20:45 -06:00
3548d42a6c
Bump cc from 1.0.40 to 1.0.41 ( #5699 )
...
Bumps [cc](https://github.com/alexcrichton/cc-rs ) from 1.0.40 to 1.0.41.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases )
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.40...1.0.41 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-28 14:19:33 -06:00
7dfb735db9
randomize tx ordering ( #4978 )
...
Summary of Changes:
This change adds functionality to randomize tx execution for every entry. It does this by implementing OrderedIterator that iterates tx slice as per the order specified. The order is generated randomly for every entry.
2019-08-28 21:08:32 +05:30
1609765740
Adjust snapshot metrics layout
2019-08-27 20:56:15 -07:00
2510f3d352
Remove extra call to serialize in shred verify ( #5698 )
2019-08-27 19:28:00 -07:00
50ab34ad92
Install bzip2 in solana docker file ( #5701 )
2019-08-27 22:10:05 -04:00
47535b9ff1
Use serialize_into to fill in shreds instead of writing one byte at a time ( #5695 )
...
automerge
2019-08-27 17:11:24 -07:00
ffc748becb
Disable LocalVoteSignerService. It's grabbing an TCP port that's causing CI to fail occasionally ( #5690 )
2019-08-27 15:34:23 -07:00
34ab25a88b
feat: getInflation() endpoint ( #5681 )
2019-08-27 18:17:03 -04:00
8b9c3a2561
Blocktree last_root to enforce a slot floor ( #5593 )
...
* Add last_root to blocktree
* Don't repair earlier than last_root
* Add integration test to make sure blocktree floor is enforced
2019-08-27 15:09:41 -07:00
362a39a941
Don't unwrap get_balance immediately in bench-tps move mode ( #5685 )
...
automerge
2019-08-27 14:36:48 -07:00
9f2119920c
Revert "Add debug to help track down ci/localnet-sanity.sh instability"
...
This reverts commit 7aaf5bc02c
.
2019-08-27 14:28:22 -07:00
afb24d28ca
Disable cargo caching. Travis is timing itself out as it updates the cache at the end of a build
2019-08-27 14:19:54 -07:00
0c62cf8980
Add metrics for snapshot generation ( #5677 )
2019-08-27 13:04:20 -07:00
f1d58f980b
Ignore retransmit channel error ( #5680 )
...
automerge
2019-08-27 12:41:04 -07:00
b1dfbf0ac4
Rename solana badges to solana-core in README ( #5682 )
2019-08-27 13:40:23 -06:00
12ad95eb5e
Erasure statistics for shreds ( #5676 )
2019-08-27 11:22:06 -07:00
7aaf5bc02c
Add debug to help track down ci/localnet-sanity.sh instability
2019-08-27 08:49:04 -07:00
85f03b590d
Bump jsonrpc-derive from 13.0.0 to 13.1.0 ( #5668 )
...
Bumps [jsonrpc-derive](https://github.com/paritytech/jsonrpc ) from 13.0.0 to 13.1.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v13.0.0...v13.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-27 08:48:34 -07:00
a29f0484dc
Add newline before cluster info log ( #5671 )
2019-08-27 08:33:48 -07:00
8e6e72babd
Bump jsonrpc-core from 13.0.0 to 13.1.0 ( #5669 )
...
Bumps [jsonrpc-core](https://github.com/paritytech/jsonrpc ) from 13.0.0 to 13.1.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v13.0.0...v13.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-27 07:49:16 -07:00
def71164f4
Bump cbindgen from 0.9.0 to 0.9.1 ( #5670 )
...
Bumps [cbindgen](https://github.com/eqrion/cbindgen ) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/eqrion/cbindgen/releases )
- [Changelog](https://github.com/eqrion/cbindgen/blob/master/CHANGES )
- [Commits](https://github.com/eqrion/cbindgen/compare/v0.9.0...v0.9.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-27 07:49:00 -07:00
eda46d30bb
Bump console from 0.7.7 to 0.8.0 ( #5631 )
...
automerge
2019-08-26 22:44:09 -07:00
d87910eb15
Log bind error ( #5666 )
2019-08-26 21:59:40 -07:00
7257d2845d
Bump hex-literal from 0.2.0 to 0.2.1 ( #5638 )
...
Bumps [hex-literal](https://github.com/RustCrypto/utils ) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/RustCrypto/utils/releases )
- [Commits](https://github.com/RustCrypto/utils/compare/hex-literal-v0.2.0...hex-literal-v0.2.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-26 21:32:42 -07:00
9744eb0ccd
Bump lazy_static from 1.3.0 to 1.4.0 ( #5640 )
...
Bumps [lazy_static](https://github.com/rust-lang-nursery/lazy-static.rs ) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/rust-lang-nursery/lazy-static.rs/releases )
- [Commits](https://github.com/rust-lang-nursery/lazy-static.rs/compare/1.3.0...1.4.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-26 21:32:31 -07:00
a273ddcd97
Rename fixed_buf to fixed-buf ( #5665 )
...
automerge
2019-08-26 20:31:59 -07:00
99a97b7008
Add more details to error log ( #5637 )
2019-08-26 19:51:17 -07:00
3d098d2ed9
turn cargo audit version back on ( #5651 )
2019-08-26 19:50:56 -07:00
db768b4c3a
Log contact info every 10 seconds ( #5663 )
2019-08-26 18:31:14 -07:00
4ac1213c9c
Integrate coding shreds and recovery ( #5625 )
...
* Integrate coding shreds and recovery
* More tests for shreds and some fixes
* address review comments
* fixes to code shred generation
* unignore tests
* fixes to recovery
2019-08-26 18:27:45 -07:00
a0f3208828
Ignore flaky test_banking_stage_entryfication ( #5659 )
...
automerge
2019-08-26 16:49:34 -07:00
97db802be3
Add net-tools for netstat
2019-08-26 16:17:04 -07:00
28f2c75137
Add bigger buffers for shred column families in rocks ( #5653 )
...
automerge
2019-08-26 15:58:26 -07:00
81bb208a62
Add open file descriptor monitoring ( #5655 )
2019-08-26 15:17:19 -07:00
6979a17674
Enabling building for bpf stack bug test program ( #5654 )
2019-08-26 17:23:21 -04:00
bd20c5e791
Add test case for u128 panic ( #5601 )
...
* u128 panic
* Add test case for u128 memory out of bounds error
* Fix check
2019-08-26 16:31:06 -04:00
b4935ff4ed
Re enable c tests ( #5634 )
2019-08-26 12:52:16 -07:00
e1dd74f1bf
Ignore flaky test_ledger_cleanup_service ( #5649 )
2019-08-26 12:33:42 -07:00
e2ecacc141
runtime checks for rent_epoch ( #5629 )
...
* runtime checks for rent_epoch
* add actual test
* bigger timeout
* backout 90 min timeout
* new noop
2019-08-26 11:04:20 -07:00
6512aced21
Add warmup, cooldown to definitions ( #5647 )
2019-08-26 10:01:33 -07:00
615da845cd
remove replicode in run_purge_batch() ( #5630 )
...
* remove replicode
* bigger timeout
* backout 90 min timeout
2019-08-26 09:47:48 -07:00
2c7f49c3e6
Cargo.lock
2019-08-25 22:55:37 -07:00
ba59741b60
Bump to 0.19.0-pre0
2019-08-25 21:47:29 -07:00
52da207f83
test_snapshots_restart_validity now passes ( #5644 )
...
automerge
2019-08-25 21:33:41 -07:00
ef8eff69e4
Upgrade to debian:buster ( #5639 )
2019-08-24 21:41:04 -07:00
1abdeca4c1
Add TESTNET_DB_HOST default
2019-08-24 07:38:19 -07:00
6e82978931
Fix race with LedgerCleanupService ( #5622 )
2019-08-23 23:40:20 -07:00
4e827af392
Remove unnecessary trailing semicolons ( #5636 )
2019-08-23 22:47:54 -07:00
f6b63a7dbc
Decode SOLANA_METRICS_CONFIG instead of relying on some bash to do it ( #5633 )
2019-08-23 21:17:10 -07:00
6bb22902cc
net: net.sh - Enable deploying testnets on debug binaries ( #5627 )
...
automerge
2019-08-23 18:31:18 -07:00
881a6dc0f7
Revert "Bump stable timeout"
...
This reverts commit bde4ba04af
.
2019-08-23 17:14:08 -07:00
877e7a3893
Disable C test ( #5628 )
2019-08-23 16:11:34 -07:00
bb80116605
Log build branch/commit on startup ( #5626 )
2019-08-23 15:45:55 -07:00
0ffe7a9c8f
plumb some rent ( #5610 )
...
* plumb some rent
* nits
* fixups
* fixups
* fixups
2019-08-23 14:04:53 -07:00
9b8d59d2e9
Revert "Bump indexmap from 1.0.2 to 1.1.0 ( #5565 )" ( #5624 )
...
This reverts commit f1ad69c84e
.
2019-08-23 13:20:31 -07:00
f7bd7a41d2
update staking rewards with points and warmup ( #5623 )
2019-08-23 13:11:25 -07:00
3fc5009ef2
Snapshot pipefitting through the validator cli ( #5617 )
...
* Handle 404 errors better
* Snapshot pipefitting through the validator cli
* Add download progress bar
* Log the current entrypoint slot
2019-08-23 13:02:07 -07:00
bde4ba04af
Bump stable timeout
2019-08-23 11:44:08 -07:00
f1ad69c84e
Bump indexmap from 1.0.2 to 1.1.0 ( #5565 )
...
Bumps [indexmap](https://github.com/bluss/indexmap ) from 1.0.2 to 1.1.0.
- [Release notes](https://github.com/bluss/indexmap/releases )
- [Commits](https://github.com/bluss/indexmap/compare/1.0.2...v1.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-23 11:06:24 -07:00
97ea75a890
Pull in solana_rbpf v0.1.14 ( #5609 )
2019-08-23 11:03:53 -07:00
52f6da5cee
upgrade rust to 1.37 ( #5611 )
2019-08-23 08:55:51 -07:00
aeaa0feb61
Add range lookups for erasure set indexes ( #5612 )
2019-08-22 16:32:38 -07:00
1207664bbb
Rename solana-wallet program to just solana ( #5604 )
...
* Rename wallet/ to cli/
* Rename the solana-wallet crate to solana-cli
* Rename solana-wallet program to solana
* cargo fmt
2019-08-22 13:51:16 -07:00
19d16e75c6
Fix clippy and lint issues in BPF test program ( #5607 )
...
* Revert "Add test program for BPF memory corruption bug (#5603 )"
This reverts commit 63d62c33c6
.
* Revert "Revert "Add test program for BPF memory corruption bug (#5603 )""
This reverts commit 9502082cda
.
* Fix clippy and fmt issues
2019-08-22 15:38:46 -04:00
51cf559ce1
Add datacenter node setup scripts ( #5517 )
...
automerge
2019-08-22 12:19:48 -07:00
63d62c33c6
Add test program for BPF memory corruption bug ( #5603 )
...
* Add test program for BPF memory corruption bug
* @jackcmay feedback
2019-08-22 14:25:23 -04:00
919c066e5a
update book with more of current staking details ( #5571 )
...
* Update validator-stake.md
* trailing whitespace
* update staking rewards with points and warmup
* update
* Update stake-delegation-and-rewards.md
* Update validator-stake.md
2019-08-22 09:35:52 -07:00
4125d01668
Bump reqwest from 0.9.19 to 0.9.20 ( #5598 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.19 to 0.9.20.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/v0.9.20/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.9.19...v0.9.20 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-22 07:57:33 -07:00
087c43b9ef
Add snapshotting integration test ( #5519 )
...
* Add snapshotting integration test
* Update ContactInfo on restart in local cluster nodes
2019-08-21 23:59:11 -07:00
c18ea3ccc9
Fix ignored tests in blocktree ( #5591 )
2019-08-21 20:07:51 -07:00
564b590c89
README: Bump min rustc ( #5595 )
...
automerge
2019-08-21 19:56:43 -07:00
d36ecb5c91
Add backport labels for upcoming releases
2019-08-21 18:25:20 -07:00
e2d6f01ad3
solana-validator now verifies its genesis blockhash against the cluster entrypoint ( #5589 )
2019-08-21 18:16:40 -07:00
5034331131
net: init-metrics.sh - urlencode influx password ( #5594 )
...
* net: init-metrics.sh - urlencode influx password
* old backticks bad!
* Move urlencode() to common.sh
* Make urlencode() vars local
Co-Authored-By: Michael Vines <mvines@gmail.com >
2019-08-21 19:06:09 -06:00
faafee6b42
to to/the the ( #5590 )
2019-08-21 17:46:59 -07:00
80f618f011
Add info logging around snapshot tarball generation ( #5592 )
...
automerge
2019-08-21 16:36:21 -07:00
84f763d079
net: init-metrics.sh no longer supports -c flag ( #5588 )
...
automerge
2019-08-21 15:35:07 -07:00
0dc0594aaa
Fixes to repair and orphan logic for data shreds ( #5587 )
2019-08-21 15:27:42 -07:00
d651cb7a25
Adjust |ulimit -n| automatically, no bash required ( #5586 )
2019-08-21 14:55:58 -07:00
f18aa4e423
Tuning net.inet.udp.maxdgram on mac OS is no longer required ( #5585 )
2019-08-21 13:17:01 -07:00
ab4f370e15
Bump serde_derive from 1.0.98 to 1.0.99 ( #5539 )
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.98 to 1.0.99.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-21 12:14:58 -07:00
d6f824abc0
Bump bs58 from 0.2.2 to 0.2.4 ( #5560 )
...
Bumps [bs58](https://github.com/mycorrhiza/bs58-rs ) from 0.2.2 to 0.2.4.
- [Release notes](https://github.com/mycorrhiza/bs58-rs/releases )
- [Commits](https://github.com/mycorrhiza/bs58-rs/compare/0.2.2...0.2.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-21 12:13:52 -07:00
3450b9a44d
Rename solana to solana-core ( #5583 )
2019-08-21 10:23:33 -07:00
afaf95cf53
Refine error message when ledger can't be opened ( #5582 )
2019-08-21 09:44:12 -07:00
8c371dd2fb
Update performance metrics page in the book ( #5581 )
2019-08-21 09:59:23 -04:00
bb558acdf0
Change JsonRpc exit to use wait->close ( #5566 )
...
* Add wait-close-join pattern to rpc_service
* Create ValidatorExit struct
2019-08-20 23:59:31 -07:00
159e518671
Update LLVM to v0.0.13 and Rust-BPF to v0.1.4 ( #5580 )
2019-08-20 20:25:29 -07:00
4798e7fa73
Integrate data shreds ( #5541 )
...
* Insert data shreds in blocktree and database
* Integrate data shreds with rest of the code base
* address review comments, and some clippy fixes
* Fixes to some tests
* more test fixes
* ignore some local cluster tests
* ignore replicator local cluster tests
2019-08-20 17:16:06 -07:00
f4534ef12d
Only update first version field in a Cargo.toml
2019-08-20 17:05:28 -07:00
8e0f41a790
Cargo.lock
2019-08-20 16:59:44 -07:00
b1203da82c
Bump to 0.18.0-pre2
2019-08-20 16:56:00 -07:00
e366fb6328
Update to v0.18.0
2019-08-20 16:53:12 -07:00
32de5e6e7a
Add is_keypair argument validator to wallet ( #5567 )
...
automerge
2019-08-20 13:59:31 -07:00
93ae98812b
change DEFAULT_NUM_TICKS_PER_SECOND to DEFAULT_TICKS_PER_SECOND ( #5559 )
2019-08-19 23:22:56 -07:00
2c2de12e88
Update secure variable
2019-08-19 20:04:30 -07:00
bd193535c9
Cap CrdsFilter sizes such that PullRequest no longer exceeds MTU ( #5561 )
2019-08-19 18:14:10 -07:00
d4d1e5e15b
Update secure variables
2019-08-19 15:43:23 -07:00
f7a670596f
Drop os version to resolve Appveyor Server build failure
2019-08-19 13:32:29 -07:00
a8b82a0b68
optimize store_accounts ( #5557 )
2019-08-19 13:00:37 -07:00
bb25a06baa
Remove mvines workspace path ( #5556 )
2019-08-19 12:17:24 -07:00
8b7cca986a
Bump serde from 1.0.98 to 1.0.99 ( #5540 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.98 to 1.0.99.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-19 10:06:15 -06:00
626e16a177
moar coverage in stake_state ( #5554 )
...
* moar coverage in stake_state
* nits
2019-08-18 15:41:49 -07:00
814af378a7
stake cooldown ( #5553 )
...
* stake cooldown
* fixups
* sheesh
2019-08-17 18:12:30 -07:00
a252acf539
move netutil ( #5552 )
2019-08-17 15:52:12 -07:00
01eb7600d9
use stake config to defeat warmup in local_cluster ( #5549 )
...
* use stake config to defeat warmup in local_cluster
* fixups
2019-08-17 12:28:36 -07:00
52c2191545
improve local cluster stake verification ( #5551 )
2019-08-17 12:28:20 -07:00
25403e61ed
add fixed_buf ( #5546 )
2019-08-17 11:11:59 -07:00
f402b477b2
🐌 Publish crates for even longer
2019-08-16 21:52:12 -07:00
8df8f84701
publish fixes
2019-08-16 17:28:09 -07:00
ccee6241a6
Revert "publish fixes"
...
This reverts commit 4d13d3871d
.
2019-08-16 17:28:07 -07:00
4d13d3871d
publish fixes
2019-08-16 17:03:57 -07:00
bb0c9d6145
Log more info at the start of PoH ( #5550 )
2019-08-16 16:20:20 -07:00
8d105042ea
Update getEpochVoteAccounts to getVoteAccounts ( #5543 )
...
* Rework getEpochVoteAccounts into getVoteAccounts
* Update client apis
* Update docs
* Review comments
2019-08-16 17:02:19 -06:00
84304cb0fc
Display vote pubkey at startup ( #5548 )
2019-08-16 15:56:06 -07:00
89fe297416
improve local cluster stake verification ( #5547 )
2019-08-16 15:46:19 -07:00
d853b20d7f
Remove airdrop balance (in)sanity checks ( #5542 )
2019-08-16 15:23:59 -07:00
b28407d98a
Permit keypair for deactivate-stake vote pubkey too ( #5544 )
...
automerge
2019-08-16 15:06:59 -07:00
4fa795b026
bank slot distance ( #5545 )
2019-08-16 15:00:12 -07:00
c298474e6f
Add validator-info for net/ managed nodes ( #5538 )
2019-08-16 11:39:58 -07:00
d925902b3f
Set default wallet/validator-info url to localhost ( #5537 )
...
automerge
2019-08-16 10:22:22 -07:00
99eeb63f71
move the rest of cluster to local_cluster ( #5535 )
2019-08-16 00:00:38 -07:00
ff95f6dcfa
Remove bad !
2019-08-15 21:41:14 -07:00
8258532791
System program is now registered like all other native programs ( #5526 )
2019-08-15 21:07:00 -07:00
e73cbdda61
Reduce log level for known issue ( #5536 )
...
automerge
2019-08-15 19:42:27 -07:00
94f1132fb6
fix single node testnet, remove bootstrap vote ( #5534 )
2019-08-15 18:58:46 -07:00
4ee212ae4c
Coalesce gossip pull requests and serve them in batches ( #5501 )
...
* Coalesce gossip pull requests and serve them in batches
* batch all filters and immediately respond to messages in gossip
* Fix tests
* make download_from_replicator perform a greedy recv
2019-08-15 17:04:45 -07:00
d5fb493aa4
Change recv to try_recv ( #5533 )
2019-08-15 15:17:46 -07:00
88ea950652
add stake_api config account ( #5531 )
2019-08-15 14:35:48 -07:00
e4519d6447
Use check_unique_pubkeys helper to prevent DuplicateAccountIndex errors earlier ( #5532 )
2019-08-15 14:16:05 -06:00
471bc73a23
Fix Rust 1.37.0 compiler warnings ( #5530 )
...
Looks like most usages of trait objects should have introduced
a type variable instead.
2019-08-15 14:00:09 -06:00
75a2b74751
Delete append_vec_serialize
2019-08-15 11:02:30 -07:00
4e69408f54
Bump cc from 1.0.38 to 1.0.40 ( #5502 )
...
Bumps [cc](https://github.com/alexcrichton/cc-rs ) from 1.0.38 to 1.0.40.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases )
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.38...1.0.40 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-15 11:43:32 -06:00
38602d60b3
Reverse .travis.yml fix
...
_It didn't work!_
2019-08-15 11:15:34 -06:00
1fe1550a30
Update docs wrt new wallet and rpc functionality ( #5528 )
2019-08-15 11:05:34 -06:00
827f2b3a5c
Add update manifest as signer
2019-08-15 09:23:55 -07:00
a948c9b7f9
Bump libc from 0.2.61 to 0.2.62 ( #5527 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.61 to 0.2.62.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.61...0.2.62 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-15 09:49:14 -06:00
1363841f32
Fix testnet deployment
2019-08-15 08:32:10 -07:00
4688f9821f
Snapshot optimizations ( #5525 )
...
* Change serializing snapshot tar to use shell command
2019-08-14 23:14:40 -07:00
0c90c889cd
Add travis_wait to .travis.yml to fix timeout
2019-08-14 23:04:53 -06:00
9f6c9c428b
Move genesis/snapshot archive download into Rust ( #5515 )
2019-08-14 19:25:22 -07:00
fd443d85c4
update config_api with initialization and recovery utilities ( #5523 )
...
* update config_api with initialization and recovery utilities
* nits
* move tests to config_tests to eliminate config_api solana_runtime dependency
* fixups
2019-08-14 15:54:31 -07:00
b4f0f4abcc
Disable rocksdb bzip2 compression
2019-08-14 15:39:30 -07:00
d22848f9b1
use live stakes for consensus ( #5426 )
...
* use live stakes for consensus
* lint
* re-enable leader_failure_4
* fixups
* re-ignore leader_failure_4
2019-08-14 13:30:21 -07:00
79416381dc
Add pubkey setup for datacenter nodes ( #5514 )
2019-08-14 14:25:56 -06:00
d791c70d90
Snapshot optimizations ( #5518 )
...
* Limit slots_since_snapshot size, only package latest snapshot, refactor tests
* Add test checking status_cache.roots == bank_forks.slots_since_snapshot after bank_forks.set_root()
2019-08-13 22:39:29 -07:00
802537564b
Update stale.yml
2019-08-13 22:21:53 -07:00
1d0608200c
Restore blob size fix ( #5516 )
...
* Revert "Revert "Fix gossip messages growing beyond blob size (#5460 )" (#5512 )"
This reverts commit 97d57d168b
.
* Fix Crds filters
2019-08-13 18:04:14 -07:00
cd14a940d8
Allow process_blocktree() to start processing from any root ( #5484 )
...
* Remove unnecessary entry_height from BankInfo
* Refactor process_blocktree to support process_blocktree_from_root
* Refactor to process blocktree after loading from snapshot
* On restart make sure bank_forks contains all the banks between the root and the tip of each fork, not just the head of each fork
* Account for 1 tick_per_slot in bank 0 so that blockhash of bank0 matches the tick
2019-08-13 17:20:14 -07:00
58d4e32c97
Remove serialization of future AppendVecs and serialize AccountStorage correctly ( #5510 )
2019-08-13 16:05:37 -07:00
1b6a200d6f
Enable automation to close stale pull requests ( #5511 )
2019-08-13 13:07:33 -07:00
08f6a2ea3e
debash: Add solana-gossip get-rpc-url
command to avoid hard coding ( #5513 )
2019-08-13 10:49:48 -07:00
97d57d168b
Revert "Fix gossip messages growing beyond blob size ( #5460 )" ( #5512 )
...
This reverts commit a8eb0409b7
.
2019-08-13 10:29:26 -07:00
2b219228ce
Add wallet ping command ( #5508 )
2019-08-12 21:33:13 -07:00
07d11be6ab
add global stake warmup ( #5483 )
...
* add global stake warmup
* integrate stake history into runtime
* fixup core tests
* fixup
* remove existing cooldown tests for now
2019-08-12 20:59:57 -07:00
7981431f09
--entrypoint is a global arg
2019-08-12 16:08:45 -07:00
a43922ccbf
Boot hashbrown ( #5505 )
...
As of Rust 1.36.0, hashbrown now implements the HashMap in std (which
implements HashSet).
https://blog.rust-lang.org/2019/07/04/Rust-1.36.0.html#a-new-hashmapk,-v%3E-implementation
2019-08-12 16:46:49 -06:00
687818aad6
Run sdk-c through clippy separately ( #5504 )
2019-08-12 16:41:17 -06:00
b7a5136136
Helper functions for shreds ( #5493 )
2019-08-12 15:27:58 -07:00
0fde19239b
Rate limit counter metrics points to one per second ( #5496 )
...
* Rate limit counter metrics points to one per second
* Remove old env var
* Test that metrics counter is incrementing
* Fix typo
2019-08-12 18:15:34 -04:00
771d1a78fd
Bump libc from 0.2.60 to 0.2.61 ( #5491 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.60 to 0.2.61.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.60...0.2.61 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-12 15:39:26 -06:00
a8eb0409b7
Fix gossip messages growing beyond blob size ( #5460 )
...
* fixed bloom filter math
* Add split each pull request into multiple pulls with different filters
* Rework CrdsFilter to generate all possible masks to cover the keyspace
* Limit the bloom sizes such that each pull request is no larger than mtu
2019-08-12 13:51:29 -07:00
b6151b5200
Solana-wallet: prevent duplicate pubkeys ( #5497 )
...
* Add helper function to compare wallet pubkey args for uniqueness
* Fix test
2019-08-12 14:01:55 -06:00
c68ebbb0a6
Parse system custom errors ( #5494 )
2019-08-12 14:00:55 -06:00
1b84092b94
Fix slots_since_snapshot in BankForks.add_root() ( #5489 )
2019-08-12 11:56:03 -07:00
b1d43ace14
Add columns for data and code shreds ( #5461 )
2019-08-12 10:03:57 -07:00
6085109171
Delete terminated GCP instances ( #5490 )
...
automerge
2019-08-12 08:28:58 -07:00
cd89f280b7
Remove decimal point from node count
2019-08-11 09:28:59 -07:00
54f4d13350
Validator log filter may now be reconfigured at runtime ( #5473 )
...
* Log filter may now be reconfigured at runtime
* Add RPC API and bash script to reconfigure the log filter
2019-08-10 22:54:46 -07:00
799d3b1575
Bump nix from 0.14.1 to 0.15.0 ( #5488 )
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.14.1 to 0.15.0.
- [Release notes](https://github.com/nix-rust/nix/releases )
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nix-rust/nix/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-10 18:48:36 -06:00
b3b782988c
Remove extra e
2019-08-10 14:38:41 -07:00
5e128f8cc2
Simplify commands by using keypair files
2019-08-10 13:16:06 -07:00
c8c0815144
Permit keypair files for create-validator-storage-account
2019-08-10 13:16:06 -07:00
d59aae4849
Disable validator sanity for edge/beta
2019-08-10 13:16:06 -07:00
342733be54
Correct arg
2019-08-10 13:16:06 -07:00
2da7601084
Update validator-stake.md
2019-08-10 01:50:03 -06:00
958c345f0c
Add show-account command ( #5485 )
2019-08-09 22:48:57 -07:00
fe83c66686
Adjust staking instructions
2019-08-09 22:15:42 -07:00
5884469d11
count commitable in banking_stage ( #5477 )
2019-08-09 21:14:20 -07:00
9ee5f36068
Solana-wallet: print JSON RPC endpoint ( #5482 )
...
* Print RPC endpoint in use
* Fixup wallet-sanity
2019-08-09 20:23:53 -06:00
c02373493b
Add print-slot subcommand ( #5478 )
...
automerge
2019-08-09 15:57:31 -07:00
4090600717
Remove deprecated arg ( #5479 )
...
automerge
2019-08-09 15:02:27 -07:00
8a4179da67
Add balance check to all wallet transactions ( #5474 )
...
* Add payer balance check to all wallet transactions
* Fix tests
2019-08-09 15:52:06 -06:00
ed093f86f9
harmonize percentage members ( #5459 )
...
* harmonize percentage members
* update tests
* update capitalization when burning fees
* verify capitalization in fee burn
* fixup
2019-08-09 13:58:46 -07:00
07a049aa59
include vote account in deactivate ( #5476 )
2019-08-09 12:55:21 -07:00
7b77fbd525
add stake_history sysvar ( #5475 )
2019-08-09 12:31:56 -07:00
e1e295e1b6
Solana-wallet: enable keypair use for pubkey args ( #5470 )
...
* Make clap value_names more verbose for positional args
* Update clap validation to check for pubkey|keypair file
* Update helper functions to process pubkey|keypair file
* Add parse pubkey|keypair file test
* Fix vote-account instruction
* Fix vote-account instruction moar
2019-08-08 18:10:09 -06:00
5b4ee36cfd
Log more socket addresses at validator startup ( #5471 )
2019-08-08 15:38:23 -07:00
784943ecab
unignore RUSTSEC 2019 0011 ( #5365 )
2019-08-08 14:53:02 -07:00
4f86c0b74a
Rate limit transaction counters ( #5447 )
...
* Rate limit transaction counters
* @sakridge feedback
* Set default high metrics rate for multinode demo
* Fix tests
* Swap defaults and fix env var tests
* Only set metrics rate if not already set
2019-08-08 17:05:06 -04:00
5b4f24eabd
economic design update
2019-08-08 21:12:25 +02:00
a2986d3b6b
Bump solana_libra packages to v0.0.0 ( #5469 )
...
automerge
2019-08-08 12:00:34 -07:00
032d523737
Increase the amount of lamports a validator starts with ( #5466 )
...
automerge
2019-08-08 11:13:22 -07:00
238aa2133d
Move local_cluster tests into own crate ( #5465 )
2019-08-08 11:04:33 -07:00
eaf1b91148
Expand testnet validator section in book ( #5293 )
...
* Expand validator section
* Add rpc-checks command suggestions
* Update commands; populate stake page; add testnet choice info
* Specify software version to download
* Filler text for empty sections
2019-08-08 11:42:17 -06:00
4ae48b56f3
Add cluster-version subcommand to return entrypoint versions ( #5464 )
2019-08-08 11:13:06 -06:00
8c15214923
Add --dev-halt-at-slot option ( #5453 )
2019-08-08 09:14:30 -07:00
7a603d72bf
disallow withdraw of stake unless deactivated ( #5457 )
2019-08-07 20:29:22 -07:00
5b51bb27b6
Rpc to return software version ( #5456 )
...
* Add getSoftwareVersion rpc
* Add getSoftwareVersion to doc
* Rename to getVersion and return object
* Update jsonrpc-api.md
2019-08-07 20:06:27 -06:00
8231d2b672
Unfinalized program format is now same as mvir compiler outputs ( #5458 )
2019-08-07 17:16:42 -07:00
6597c71e23
Implement shred erasure recovery and reassembly ( #5444 )
...
* Implement shred erasure recovery and reassembly
* fixes and unit test
* clippy
* review comments, additional tests, and some fixes
* address review comments
* more tests and cleanup
2019-08-07 17:02:49 -07:00
e30ca01999
Only create more append_vecs when the account number grows ( #5454 )
...
We only need many append_vecs if the number of accounts is high,
so only create opportunistic ones as accounts are created.
2019-08-07 16:43:52 -07:00
12bb05c320
Fix dashboard mean tx/s stat ( #5455 )
2019-08-07 16:50:58 -04:00
8aa7a851ca
Fix hardlinking across filesystem boundaries ( #5449 )
...
* Fix hardlinking across filesystem boundaries
* create output dir for snapshot tar
2019-08-07 13:12:53 -07:00
2a17e90b7b
Add config get/set functionality to wallet ( #5452 )
...
automerge
2019-08-07 12:17:11 -07:00
f154a53e5e
Bump socket2 from 0.3.10 to 0.3.11 ( #5451 )
...
Bumps [socket2](https://github.com/alexcrichton/socket2-rs ) from 0.3.10 to 0.3.11.
- [Release notes](https://github.com/alexcrichton/socket2-rs/releases )
- [Commits](https://github.com/alexcrichton/socket2-rs/compare/0.3.10...0.3.11 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-07 10:18:17 -07:00
7911895b67
Improve bench-tps funding in move mode ( #5442 )
2019-08-07 08:55:01 -07:00
d6aaab0b2c
Remove --snapshot-path
2019-08-07 07:59:28 -07:00
be9fa22db7
Bump hashbrown from 0.3.1 to 0.5.0 ( #5450 )
...
Bumps [hashbrown](https://github.com/rust-lang/hashbrown ) from 0.3.1 to 0.5.0.
- [Release notes](https://github.com/rust-lang/hashbrown/releases )
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/hashbrown/compare/v0.3.1...v0.5.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-07 08:35:54 -06:00
b72c5689c9
Blow away snapshots directory on start ( #5446 )
2019-08-06 21:41:38 -07:00
9dcf3347f5
Refactor status cache and remove complex serialize/deserialize ( #5335 )
...
automerge
2019-08-06 18:47:30 -07:00
72e9492ca6
Handle new active_release_dir, even if semver already downloaded ( #5431 )
2019-08-06 12:58:50 -06:00
572e942413
Bump url from 2.0.0 to 2.1.0 ( #5421 )
...
Bumps [url](https://github.com/servo/rust-url ) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.0.0...v2.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-06 10:16:40 -06:00
3ae9357a36
Bump hashbrown from 0.2.2 to 0.3.1 ( #5381 )
...
Bumps [hashbrown](https://github.com/rust-lang/hashbrown ) from 0.2.2 to 0.3.1.
- [Release notes](https://github.com/rust-lang/hashbrown/releases )
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/hashbrown/compare/v0.2.2...v0.3.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-06 10:16:18 -06:00
1dbb5c8647
Deserialize snapshots ( #5417 )
...
* Deserialize snapshots
2019-08-05 22:53:19 -07:00
06d8c06119
Allow TdS CHANNEL_OR_TAG to be overridden from buildkite UI
2019-08-05 17:22:06 -07:00
cc0e455a51
Skip sanity on blockstreamer node at cluster boot.
...
It may not have caught up to the bootstrap leader yet...
2019-08-05 17:11:28 -07:00
a01520e694
Cargo.lock
2019-08-05 16:38:56 -07:00
c524d62ce0
Implement coding shred generation ( #5415 )
...
* Implemenet coding shred generation
* address review comments
2019-08-05 16:32:34 -07:00
dd4640e1ed
Revert "Revert "Bump version to 0.18.0-pre1""
...
This reverts commit 42c7d57fc0
.
2019-08-05 15:55:13 -07:00
42c7d57fc0
Revert "Bump version to 0.18.0-pre1"
...
This reverts commit 14f6d5c82b
.
2019-08-05 15:53:55 -07:00
efd09ecd37
Revert fork metrics ( #5427 )
...
* Revert "Remove duplicate row (#5419 )"
This reverts commit a81dd80d60
.
* Revert "Log fork stake-percentage in metrics, and display (#5406 )"
This reverts commit 92e419f1c7
.
2019-08-05 15:53:36 -07:00
14f6d5c82b
Bump version to 0.18.0-pre1
2019-08-05 15:11:44 -07:00
c7710fdd24
Add wallet get-slot command and document how to use it ( #5424 )
...
* Add wallet get-slot command and document how to use it
* ,
2019-08-05 13:17:03 -07:00
b5aa03dd7c
Rename --config-dir to --ledger (progress towards deleting validator.sh) ( #5423 )
2019-08-05 12:42:52 -07:00
a81dd80d60
Remove duplicate row ( #5419 )
2019-08-05 11:45:52 -06:00
09ca92d416
Surface --voting-keypair to release users ( #5420 )
...
* Remove 'configured_flag' for vote/storage account, instead detect if they exist with the wallet
* Require --voting-keypair when using release binaries
2019-08-05 10:39:16 -07:00
56ed033233
Remove unused var
2019-08-04 21:29:20 -07:00
e56efe237c
Move testnet from ec2 tp gcp
2019-08-04 21:02:27 -07:00
3f0ff45de0
Move edge/beta testnets from ec2 to gcp
2019-08-04 20:42:28 -07:00
3709dc6558
Reduce size of cpu-only gcp instances
2019-08-04 20:36:23 -07:00
6ec0318bae
Reduce AWS node count
2019-08-03 23:50:52 -07:00
92e419f1c7
Log fork stake-percentage in metrics, and display ( #5406 )
...
* Log fork stake percentage data
* Add fork stake percentage to dashboard
* Call out parent slot
2019-08-02 19:16:23 -06:00
ccc0f2d956
show-stake-account now works for reward pool accounts ( #5416 )
...
automerge
2019-08-02 17:15:26 -07:00
80bb0158b7
Initial implementation of packet shredder ( #5401 )
...
* Initial implementation of packet shredder
* tests
* clippy
* review comments
2019-08-02 15:53:42 -07:00
f12592826f
Disable snapshots #5411
2019-08-02 15:48:51 -07:00
8d38777c1f
Remove stray --stake 0
2019-08-02 15:06:40 -07:00
832dfd4ab0
Change bank to not create default ( #5409 )
2019-08-02 14:46:53 -07:00
04d2db4dbb
Force boot_from_snapshot=0 for now
2019-08-02 14:21:45 -07:00
6f269e5a0e
Improve error messages when a vote account is rejected for delegation ( #5407 )
2019-08-02 10:09:09 -07:00
eb3991b9ba
Replay stage log message nits ( #5408 )
2019-08-02 10:08:42 -07:00
aee63f15c2
Rename state.tgz to snapshot.tgz to match rpc service
2019-08-02 10:07:29 -07:00
aced847735
validator-info --help text tweaks ( #5402 )
2019-08-02 08:30:08 -07:00
e360e63b74
getProgramAccounts to check for existing validator-info ( #5404 )
2019-08-02 07:40:54 -07:00
a6c4525998
RPC to the bootstrap leader instead of the local node, which may not yet be fully initialized
2019-08-01 23:34:55 -07:00
77b196a226
Show vote account details
2019-08-01 23:34:25 -07:00
b6b9c2cf56
Delegate stake from the pre-created identity keypair if it exists
2019-08-01 23:00:15 -07:00
59d900977d
Avoid airdroping when airdrops are disabled
2019-08-01 22:43:09 -07:00
0f5acb86d3
wallet: Refuse to delegate stake to a vote account with a stale root slot ( #5282 )
...
* Refuse to delegate stake to a vote account with a stale root slot
* Remove sdk-c from the virtual manifest temporarily
For an unknown reason |cargo clippy| is getting stuck in CI
intermittently when trying to build this crate.
2019-08-01 21:08:24 -07:00
911dee24c5
Give a unique port range for each validator node ( #5397 )
...
automerge
2019-08-01 14:37:59 -07:00
f03e066ec5
Bump log from 0.4.7 to 0.4.8 ( #5382 )
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.7 to 0.4.8.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang-nursery/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-01 14:31:18 -07:00
f7d3f55566
fix epoch_stakes again ( #5396 )
2019-08-01 14:27:47 -07:00
4298b1f595
Document the --limit-ledger-size flag ( #5393 )
2019-08-01 14:06:40 -07:00
870503ee36
Introduce delegate-stake.sh for adding stake to a validator.sh ( #5380 )
2019-08-01 13:48:00 -07:00
4d14abbd04
Document getSlot
2019-08-01 13:16:23 -07:00
5212b2716c
Don't rebuild/retest release tags ( #5385 )
2019-08-01 13:11:42 -07:00
97c0573c7d
Change default location of solana.h
to OUT_DIR
( #5389 )
...
automerge
2019-08-01 12:33:30 -07:00
43cc9fcb1d
Update mean tx/s to use the correct counter ( #5390 )
2019-08-01 15:30:36 -04:00
47b5ba44e9
Add tag suffix to remaining metrics host_id queries ( #5388 )
2019-08-01 14:43:13 -04:00
e95397e0a8
Clarify that host_id is a tag in metrics influx queries ( #5387 )
2019-08-01 14:34:07 -04:00
c7cdf8ba93
Bump winreg from 0.6.1 to 0.6.2 ( #5367 )
...
Bumps [winreg](https://github.com/gentoo90/winreg-rs ) from 0.6.1 to 0.6.2.
- [Release notes](https://github.com/gentoo90/winreg-rs/releases )
- [Commits](https://github.com/gentoo90/winreg-rs/compare/v0.6.1...v0.6.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-08-01 08:48:29 -07:00
6ee734e1b4
Depersonalize paths
2019-08-01 08:36:54 -07:00
3ab1b46ef7
Fix vote metrics ( #5377 )
2019-08-01 09:11:49 -04:00
22891b39d6
bench-exc: readme changes ( #5373 )
...
replace token pair, direction
replace "swapper" with "matcher"
2019-07-31 23:08:56 -06:00
b6ce7ec782
Default to solana=info log level for drone ( #5374 )
...
Otherwise prints nothing..
2019-07-31 20:00:52 -07:00
a41c7451f1
Add testnet prefix to the metrics queries without it ( #5376 )
2019-07-31 21:07:25 -04:00
6cb2040a1b
Snapshot Packaging Service ( #5262 )
...
* Snapshot serialization and packaging
2019-07-31 17:58:10 -07:00
937f9ad049
Teach solana-install about release channels ( #5372 )
...
$ solana-install init edge # <-- setup an install using the edge channel
$ solana-install update # <-- update to the latest edge channel release
2019-07-31 17:30:17 -07:00
c2fc0f2418
Plumb libra accounts to genesis ( #5333 )
...
* Plumb move_loader to genesis
* Remove core dependency on genesis-programs
2019-07-31 16:10:55 -07:00
9278201198
fix epoch_stakes ( #5355 )
...
* fix epoch_stakes
* fix stake_state to use stakers_epoch
* don't allow withdrawal before deactivation
2019-07-31 15:13:26 -07:00
149a63100d
remove no-snapshot option from tds testnet ( #5368 )
2019-07-31 14:51:54 -07:00
d09afdbefe
Synchronize and cleanup instruction processor lists ( #5356 )
2019-07-31 14:28:14 -07:00
1d6bafbc77
Move tds to edge ( #5366 )
2019-07-31 14:18:05 -07:00
01d2b4e952
Bump jsonrpc-http-server from 12.1.0 to 13.0.0 ( #5361 )
...
* Bump jsonrpc-http-server from 12.1.0 to 13.0.0
Bumps [jsonrpc-http-server](https://github.com/paritytech/jsonrpc ) from 12.1.0 to 13.0.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v12.1.0...v13.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Update all jsonrpc crates to v13.0.0
2019-07-31 14:30:47 -06:00
05f3437601
Handle paying for move transactions with unique solana system transactions ( #5317 )
2019-07-31 11:15:14 -07:00
f859243191
Remove unused var
2019-07-31 10:51:30 -07:00
9ddc25283c
Adapt validator sanity args
2019-07-31 10:46:25 -07:00
388d4a8592
Remove obsolete --generate-snapshots argument
2019-07-31 10:26:22 -07:00
0b0b679120
exchange update: replace direction ( #5362 )
...
* replace direction with OrderSide
* bench exchange: update direction uses to OrderSide
2019-07-31 11:19:09 -06:00
3b752876ac
Bump ws from 0.8.1 to 0.9.0 ( #5360 )
...
Bumps [ws](https://github.com/housleyjk/ws-rs ) from 0.8.1 to 0.9.0.
- [Release notes](https://github.com/housleyjk/ws-rs/releases )
- [Changelog](https://github.com/housleyjk/ws-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/housleyjk/ws-rs/compare/v0.8.1...v0.9.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-31 10:13:52 -07:00
9b8b7dbfd7
Avoid setting RUST_LOG to the empty string ( #5338 )
2019-07-31 10:13:30 -07:00
c209e14e40
validator.sh now supports an --entrypoint arg, mimicking the solana-validator CLI API ( #5363 )
2019-07-31 09:54:39 -07:00
6df1f6450f
Drop rsync address
2019-07-31 09:24:49 -07:00
6d7cb23c61
Add command to create genesis accounts ( #5343 )
2019-07-30 23:43:12 -07:00
bd7e269280
Kill rsync ( #5336 )
...
automerge
2019-07-30 22:43:47 -07:00
b05b42d74d
Reduce max blob size ( #5345 )
...
* Reduce max blob size
* ignore test_star_network_push_rstar_200
2019-07-30 22:15:07 -07:00
af733a678a
Bump serde_derive from 1.0.97 to 1.0.98 ( #5314 )
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.97 to 1.0.98.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-30 21:45:34 -07:00
8a5045f05c
Bump timeouts for publish docker/tarball builds
2019-07-30 20:09:47 -07:00
4a336eb5ff
ValidatorConfig path reform: use Path/PathBuf for paths ( #5353 )
2019-07-30 19:47:24 -07:00
b7e08052ae
Bump serde from 1.0.97 to 1.0.98 ( #5315 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.97 to 1.0.98.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-30 19:46:50 -07:00
f6a4acfac3
Bump dirs from 2.0.1 to 2.0.2 ( #5312 )
...
Bumps [dirs](https://github.com/soc/dirs-rs ) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/soc/dirs-rs/releases )
- [Commits](https://github.com/soc/dirs-rs/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-30 19:46:39 -07:00
68eff230f0
Fix name-id reporting dependency ( #5354 )
2019-07-30 16:22:20 -07:00
c78db6a94b
ledger path reform: use Path/PathBuf instead of strings ( #5344 )
2019-07-30 15:53:41 -07:00
294d9288d2
Update remote-node.sh to use bootstrap-leader.sh ( #5352 )
2019-07-30 15:53:03 -07:00
7dc5cc26a6
Make max_epoch check in next_leader_at in leader schedule ( #5342 )
2019-07-30 15:51:02 -07:00
d7a2b790dc
Limit the size of gossip push and gossip pull response ( #5348 )
...
* Limit the size of gossip push and gossip pull response
* Remove Default::default
* Rename var
2019-07-30 15:43:17 -07:00
a7a10e12c7
Forward transactions as packets instead of blobs ( #5334 )
...
* Forward transactions as packets instead of blobs
* clippy
2019-07-30 14:50:02 -07:00
8d243221f0
Ignore flaky local cluster tests ( #5347 )
...
* Add logging to local_cluster tests
* Ignore flaky test_leader_failure_4, test_repairman_catchup
And crashing banking benchmarks.
2019-07-30 13:48:46 -07:00
84368697af
Fix metrics when leader does not report metrics ( #5291 )
2019-07-30 16:18:33 -04:00
4a57cd3300
Update bank.rs
2019-07-30 11:33:06 -07:00
2214d2dbb5
Eject bootstrap-leader support from fullnode.sh ( #5301 )
2019-07-29 21:25:28 -07:00
50a991fdf9
add executable checks to verify_instruction ( #5326 )
2019-07-29 15:29:20 -07:00
4e093525c7
Default to error logs, override with info only for those programs that need it ( #5321 )
...
* Revert "Revert "Default log level to to RUST_LOG=solana=info (#5296 )" (#5302 )"
This reverts commit 7796e87814
.
* Default to error logs, override with info only for those programs that need it
2019-07-29 10:57:00 -07:00
506b305959
Move coverage back to the default queue ( #5318 )
2019-07-28 22:20:54 -07:00
e83efcfc80
Tidy test-checks.sh ( #5319 )
2019-07-28 22:19:03 -07:00
4f1c881227
Add --use_move mode to bench-tps ( #5311 )
...
* Add --use_move mode to bench-tps
substitute for global flag.
* Use cuda queue for coverage build.
2019-07-28 10:43:42 -07:00
a642168369
Add move to bench-tps ( #5250 )
2019-07-27 15:28:00 -07:00
8d296d0969
Move credit-only and Move proposals to the implemented section of the book ( #5308 )
...
automerge
2019-07-27 15:08:44 -07:00
68b11c1c29
Pull all libra crates from crates.io ( #5306 )
2019-07-27 15:06:27 -06:00
c209718a6f
Add libray_api ( #5304 )
...
Simple move-based payment api
2019-07-27 12:11:51 -07:00
b8835312bb
Update cargo.toml files to 0.18.0-pre0 ( #5303 )
2019-07-27 11:42:06 -06:00
7796e87814
Revert "Default log level to to RUST_LOG=solana=info ( #5296 )" ( #5302 )
...
This reverts commit c63a38ae57
.
2019-07-27 07:46:45 -07:00
64c770275b
Integrate Move VM into main build ( #5229 )
...
* Integrate Move VM into top-level build
* Switch to protoc-free libra
2019-07-27 06:59:46 -06:00
855f7ff352
Move Move deps from a branch to a tag ( #5300 )
2019-07-26 23:51:42 -06:00
b59a99111c
Bump url from 1.7.2 to 2.0.0 ( #5247 )
...
* Bump url from 1.7.2 to 2.0.0
Bumps [url](https://github.com/servo/rust-url ) from 1.7.2 to 2.0.0.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v1.7.2...v2.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Adapt to url 2.0.0
2019-07-26 21:46:38 -07:00
252257fe66
Rewrite multinode-demo/replicator.sh to avoid fullnode.sh ( #5299 )
2019-07-26 19:00:34 -07:00
e2c9d87d91
Move verify to finalize ( #5297 )
...
automerge
2019-07-26 17:51:07 -07:00
9d34b80ed6
Upgrade to all the latest packages our existing Cargo.toml will allow ( #5298 )
...
automerge
2019-07-26 17:21:01 -07:00
c63a38ae57
Default log level to to RUST_LOG=solana=info ( #5296 )
2019-07-26 16:29:16 -07:00
20da2604f8
storage-keypair argument should not be required ( #5295 )
...
automerge
2019-07-26 15:18:55 -07:00
33de2cad6d
Replace TokenPair in exchange ( #5292 )
...
* simplify token pair representation, rename to AssetPair for forward compat.
* update bench exchange TokenPair use
2019-07-26 14:31:08 -06:00
aef7bae60d
Let grace ticks to roll over into multiple leader slots ( #5268 )
...
* Let grace ticks to roll over into multiple leader slots
* address review comments
2019-07-26 11:33:51 -07:00
54ac7ed1ea
Voting/storage keypair can now be provided by the user ( #5288 )
2019-07-26 11:05:02 -07:00
0180246680
Clean up argument parsing ( #5290 )
...
automerge
2019-07-26 10:37:03 -07:00
dab7de7496
Add confidence cache to BankForks ( #5066 )
...
* Add confidence cache to BankForks
* Include stake-weighted lockouts in cache
* Add cache test
* Move confidence cache updates to handle_votable_bank
* Prune confidence cache on prune_non_root()
* Spin thread to process aggregate_stake_lockouts
* Add long-running thread for stake_weighted_lockouts computation
2019-07-26 11:27:57 -06:00
feaf29792f
Error cleanly on show vote/stake/storage account pubkey mismatch ( #5289 )
...
Also deverb vote/stake account variables
2019-07-26 09:34:12 -07:00
5f09aa36b3
Drop code supporting no leader rotation ( #5286 )
2019-07-26 09:26:27 -07:00
d6c74f438a
Delete vestigal --vote-account argument ( #5287 )
...
automerge
2019-07-26 08:42:48 -07:00
349ebec629
Bump serde from 1.0.94 to 1.0.97 ( #5285 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.94 to 1.0.97.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.97 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-26 07:22:25 -06:00
f4554be72c
add vote withdraw ( #5284 )
2019-07-25 23:20:47 -07:00
8537da19bb
groom accounts_db ( #5283 )
2019-07-25 22:59:28 -07:00
d1eff5d607
Merge create-stake-account into delegate-stake ( #5280 )
2019-07-25 16:53:43 -07:00
19e4f70244
Change default behavior to remove a prerelease tag if present instead of a minor version bump
2019-07-25 16:33:24 -07:00
a233a1c822
Fix poh recorder not flushing virtual ticks immediately ( #5277 )
...
* Fix poh not flushing virtual ticks immediately
* Fix test_would_be_leader_soon
2019-07-25 11:08:44 -07:00
27bc0a22dd
Add support for invoking and publishing Move modules ( #5278 )
2019-07-25 09:30:24 -07:00
7ee8383e02
Bump serde_derive from 1.0.94 to 1.0.97 ( #5279 )
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.94 to 1.0.97.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.97 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-25 06:47:24 -06:00
bab0f6be1e
Store Move account data in a deterministic order ( #5276 )
2019-07-24 21:43:14 -07:00
535df0026d
Fixes for Blocktree space amplification and slot deletion ( #5266 )
...
* Fixes for Blocktree space amplification and slot deletion
2019-07-24 17:28:08 -07:00
3bd35dd7cc
Remove usage of api.testnet.solana.com ( #5274 )
2019-07-24 17:06:26 -07:00
39d29fab82
Exchange update cont. ( #5272 )
...
* Trade -> Order for keyedAcct indices
* rename deserialize_trade -> deserialize_order
* rename do_order_cancel params
* rename vars *_trade -> *_order
2019-07-24 17:49:10 -06:00
fbfe1a59a6
bump timeout
2019-07-24 13:53:08 -07:00
77c79effc1
Update github token
2019-07-24 13:50:49 -07:00
83540087c3
Switch to forked libra packages ( #5270 )
...
* Switch to forked libra packages
* Don't Cargo.lock lib crates
2019-07-24 14:21:22 -06:00
937816e67b
Post warning if window service isn't receiving any data ( #5269 )
...
automerge
2019-07-24 12:46:10 -07:00
c3a941086d
Remove more unwraps ( #5267 )
...
automerge
2019-07-24 12:30:43 -07:00
1046c5e32c
Adjust log levels ( #5265 )
...
automerge
2019-07-24 10:15:49 -07:00
baac8d2590
Upgrade libra ( #5264 )
...
automerge
2019-07-24 09:56:29 -07:00
610a02c518
Bump jsonrpc-ws-server from 12.0.0 to 12.1.0 ( #5261 )
...
Bumps [jsonrpc-ws-server](https://github.com/paritytech/jsonrpc ) from 12.0.0 to 12.1.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v12.0.0...v12.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-24 10:52:44 -06:00
444bd7a702
Bump semver from 0.7.0 to 0.9.0 ( #5260 )
...
Bumps [semver](https://github.com/steveklabnik/semver ) from 0.7.0 to 0.9.0.
- [Release notes](https://github.com/steveklabnik/semver/releases )
- [Commits](https://github.com/steveklabnik/semver/compare/v0.7.0...v0.9.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-24 10:52:20 -06:00
7afc61e0b9
Cap Move program's execution ( #5259 )
2019-07-24 08:06:03 -07:00
d4d9bec2a9
NDEBUG=1
2019-07-24 07:28:16 -07:00
d647a4ec57
Bump publish-crate.sh timeout
2019-07-23 22:12:34 -07:00
536b4c1a25
Export genesis creation function ( #5252 )
2019-07-23 21:34:17 -07:00
547a7a345f
Add logs to indicate when the leader changes ( #5253 )
2019-07-23 22:19:20 -04:00
26e380e53c
Sort bench-tps keypairs ( #5254 )
...
automerge
2019-07-23 17:46:33 -07:00
8a12ed029c
make accounts_db own the directory paths ( #5230 )
...
* change paths to something accounts_db (the singleton) owns, fixes SIGILL
* fail deserialize if paths don't work
serialize paths, too
* test that paths are populated from a bank snapshot
2019-07-23 13:47:48 -07:00
b41e8333b1
Add support to install a specific Solana version directly from the Github releases ( #5248 )
2019-07-23 12:51:10 -07:00
8f646e21d7
Bump cc from 1.0.37 to 1.0.38 ( #5245 )
...
Bumps [cc](https://github.com/alexcrichton/cc-rs ) from 1.0.37 to 1.0.38.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases )
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.37...1.0.38 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-23 10:51:50 -07:00
5608af0246
Cleanup and fix Move account invoking ( #5244 )
...
* Remove deps, geneerate genesis, cleanup
* Fix tests, specify sender in ix data
* nits
2019-07-23 08:54:34 -06:00
17b9ea3e3b
Update buildkite-secondary.yml
2019-07-23 07:33:13 -07:00
88d4d1db7a
Update buildkite.yml
2019-07-23 00:20:05 -07:00
cab4c88c71
Bump timeouts
2019-07-22 23:52:30 -07:00
4ec5a899f5
Check longer
2019-07-22 23:41:42 -07:00
c2f74330ef
Drop ring crate ( #5242 )
2019-07-22 23:11:40 -07:00
2c8e0bcf87
Introduce --config-dir to avoid shipping clear-config.sh ( #5241 )
2019-07-22 22:59:02 -07:00
4966ab528e
validator.sh: Add --reset-ledger option ( #5235 )
...
* Add --recreate-ledger option
* --reset-ledger
2019-07-22 22:20:54 -07:00
5f81a67298
Add --no-deploy option to allow restarting nodes without a software update ( #5182 )
2019-07-22 21:38:26 -07:00
a0ccdccff1
Call book/build.sh from docker ( #5237 )
...
* Call book/build.sh from docker
* debug
* Revert "debug"
This reverts commit 32986b73b7
.
2019-07-22 21:37:43 -07:00
735c7c9841
Add manual publish for book and create book-beta ( #5112 )
2019-07-22 17:45:00 -06:00
3a69459645
Surface validator pubkey in metrics ( #5227 )
2019-07-22 16:08:21 -07:00
21cef2fe21
Do not attempt to create solana user multiple times ( #5228 )
...
* Do not attempt to create solana user multiple times
2019-07-22 16:13:08 -06:00
038c6ea0a7
Bump solana_libra to v0.0.0.1 ( #5225 )
...
automerge
2019-07-22 14:17:06 -07:00
81f4fd56c7
Log the repairee pubkey when unable to serve them ( #5222 )
...
automerge
2019-07-22 14:13:29 -07:00
264a3d7dde
Increase ticks_per_slot for banking benchmark ( #5221 )
2019-07-22 13:57:28 -07:00
43bf176fab
more granular check for memoffset ignore in audit ( #5219 )
...
* more granular check for memoffset ignore in audit
* debugggin
* debugggin
* debugggin
* debugggin
* debugggin
2019-07-22 13:36:27 -07:00
baec17fdf4
Fix some nightly warnings ( #5218 )
2019-07-22 12:51:02 -07:00
186b514ebb
Embed Move ( #5150 )
...
automerge
2019-07-22 12:01:52 -07:00
2d42c1e33e
add root to terminology ( #5209 )
...
* add root to terminology
* review feedback
2019-07-22 09:36:20 -07:00
9cef522eee
Bump walkdir from 2.2.8 to 2.2.9 ( #5204 )
...
Bumps [walkdir](https://github.com/BurntSushi/walkdir ) from 2.2.8 to 2.2.9.
- [Release notes](https://github.com/BurntSushi/walkdir/releases )
- [Commits](https://github.com/BurntSushi/walkdir/compare/2.2.8...2.2.9 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-22 09:35:46 -07:00
a6302acfd5
Bump jsonrpc-http-server from 12.0.0 to 12.1.0 ( #5211 )
...
Bumps [jsonrpc-http-server](https://github.com/paritytech/jsonrpc ) from 12.0.0 to 12.1.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v12.0.0...v12.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-22 10:34:27 -06:00
ac72265c6b
Request a uniform timezone
2019-07-22 09:25:36 -07:00
09da6b4b48
Encourage setting an RPC port
2019-07-22 08:23:36 -07:00
0d8f5379a0
Add time units
2019-07-22 08:22:21 -07:00
02c7b89a8f
Update location of TdS external accounts file url
2019-07-21 17:38:15 -07:00
90ae33c200
Update incoming_webhook
2019-07-21 11:27:19 -07:00
55c879ce2d
Update S3 key
2019-07-21 11:18:17 -07:00
1b5a332239
Adjustments for appveyor server
2019-07-21 09:21:28 -07:00
595017499e
accounts_index: RwLock per-account ( #5198 )
...
* accounts_index: RwLock per-account
Lots of lock contention on the accounts_index lock,
only take write-lock on accounts_index if we need to insert/remove an
account.
For updates, take a read-lock and then write-lock on the individual
account.
* Remove unneeded enumerate and add comments.
2019-07-20 17:58:39 -07:00
9b1471acae
Upgrade to Rust 1.36.0 ( #5206 )
...
* Upgrade to Rust 1.36.0
* Move test-checks.sh back to stable
* update nightly version to 2019-07-19
* use both nightly and stable for checks
2019-07-20 18:53:16 -06:00
b766ac0899
rent ( #5205 )
2019-07-20 16:28:17 -07:00
e6b525a614
disable audit until crossbeam epoch release ( #5208 )
2019-07-20 15:50:26 -07:00
a07b17b9b5
Drop older slots in the ledger ( #5188 )
...
* Add facility to delete blocktree columns in range
* Add ledger cleanup service
* Add local_cluster test
2019-07-20 13:13:55 -07:00
9d2940d487
Show wallet commands for better log debugging
2019-07-19 20:21:51 -07:00
6969ece2dd
Ensure CI_OS_NAME is set for appveyor server
2019-07-19 20:06:32 -07:00
48fc35884c
Add Transaction Documentation ( #5115 )
2019-07-19 16:42:50 -06:00
0958905df8
Bump reqwest from 0.9.18 to 0.9.19 ( #5201 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.18 to 0.9.19.
- [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.9.18...v0.9.19 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-19 16:13:34 -06:00
c95cda51c9
Fix internal node lamport funding and staking allocation logic ( #5192 )
...
* Plumb node funding from genesis
* Cleanup naming convention
* Fix balance vs stake yml file logic
* Lamps not Stakes
2019-07-19 12:51:38 -06:00
3f54c0f1a6
Update struct order arbitrarily to match rpc output ( #5197 )
2019-07-19 11:45:04 -06:00
4684faa5e8
Bump jsonrpc-core from 12.0.0 to 12.1.0 ( #5143 )
...
Bumps [jsonrpc-core](https://github.com/paritytech/jsonrpc ) from 12.0.0 to 12.1.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v12.0.0...v12.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-19 09:59:56 -07:00
111d0eb89b
runtime: Add bench for accounts::hash_internal_state ( #5157 )
...
* runtime: Add bench for accounts::hash_internal_state
* fixup! cargo fmt
* fixup! cargo clippy
* fixup! Use a more representitive number of accounts
* fixup! More descriptive name for accounts creation helper
2019-07-19 10:32:29 -06:00
8b69998379
Lower recovery messages ( #5181 )
2019-07-19 09:20:14 -07:00
a21251dfea
Fix up signal handling
2019-07-19 08:35:22 -07:00
06cd7c1020
Disable restart
2019-07-19 08:35:22 -07:00
782846f295
Document fetch-perf-libs.sh when building with CUDA
2019-07-19 08:35:22 -07:00
19e131d710
Bump jsonrpc-derive from 12.0.0 to 12.1.0 ( #5193 )
...
Bumps [jsonrpc-derive](https://github.com/paritytech/jsonrpc ) from 12.0.0 to 12.1.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v12.0.0...v12.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-19 07:34:48 -07:00
9fd34cd985
Bump untrusted from 0.6.2 to 0.7.0 ( #5194 )
...
Bumps [untrusted](https://github.com/briansmith/untrusted ) from 0.6.2 to 0.7.0.
- [Release notes](https://github.com/briansmith/untrusted/releases )
- [Commits](https://github.com/briansmith/untrusted/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-19 07:34:04 -07:00
adfb8ff2a1
Add getEpochInfo() and getLeaderSchedule() RPC methods ( #5189 )
...
* Add getLeaderSchedule() RPC method
* Add getEpochInfo() RPC method
* Add JSON RPC docs
2019-07-19 07:31:18 -07:00
83aa609540
Bump winreg from 0.6.0 to 0.6.1 ( #5149 )
...
Bumps [winreg](https://github.com/gentoo90/winreg-rs ) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/gentoo90/winreg-rs/releases )
- [Commits](https://github.com/gentoo90/winreg-rs/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-18 21:24:40 -07:00
1e1cb7c57c
Select stable rust version ( #5180 )
2019-07-18 21:19:07 -07:00
cdbd1b908a
Ensure validator process is kill when stdout/stderr are redirected ( #5179 )
2019-07-18 21:18:48 -07:00
a12e7a2e33
Separate build and deploy steps in net/net.sh ( #5184 )
...
So one can keep the network up while a new experiment is building
2019-07-18 18:59:47 -07:00
25080f1a33
fix book typos ( #5185 )
2019-07-18 17:24:22 -07:00
afa05acb32
more replay_stage grooming ( #5163 )
2019-07-18 14:54:27 -07:00
d47caf2af8
add information to panic ( #5177 )
2019-07-18 14:41:32 -07:00
a3a91ba222
Fix misleading variable name ( #5176 )
...
automerge
2019-07-18 14:07:32 -07:00
751b54b60b
Skip sleeping in replay stage if a bank was recently processed ( #5161 )
...
* Skip sleeping in replay stage if a bank was recently processed
* Remove return
2019-07-18 12:04:53 -07:00
488dd0e563
Keybase: s/id/username ( #5165 )
2019-07-18 12:16:13 -06:00
b58558ea4e
net/: startnode/stopnode now works for blockstreamer/replicator nodes ( #5146 )
...
* startnode/stopnode now works for blockstreamer/replicator nodes
* Plumb --skip-ledger-verify through net/
2019-07-17 19:26:23 -07:00
6ad9dc18d8
Add ability to prune ledger ( #5128 )
...
* Add utility to prune the ledger
* Add tests
* Fix clippy
* Fix off by one
* Rework to force delete every column
* Minor fixup
2019-07-17 14:42:29 -07:00
027ebb6670
no more OUT_DIR ( #5139 )
...
* no more OUT_DIR
* no more OUT_DIR
* more information about failure
2019-07-17 14:27:58 -07:00
0ffd91df27
groom poh_recorder ( #5127 )
...
* groom poh_recorder
* fixup
* nits
* slot() from the outside means "the slot the recorder is working on"
* remove redundant check
* review comments, put next_tick back in the "is reset" check
* remove redundant check
2019-07-17 14:10:15 -07:00
10d85f8366
Add weighted shuffle support for values upto u64::MAX ( #5151 )
...
automerge
2019-07-17 12:44:28 -07:00
7aad427511
Bump libloading from 0.5.1 to 0.5.2 ( #4950 )
...
Bumps [libloading](https://github.com/nagisa/rust_libloading ) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/nagisa/rust_libloading/releases )
- [Commits](https://github.com/nagisa/rust_libloading/compare/0.5.1...0.5.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-17 09:29:45 -06:00
bbd0455418
Bump log from 0.4.6 to 0.4.7 ( #5144 )
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.6 to 0.4.7.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang-nursery/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.6...0.4.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-17 09:25:57 -06:00
5174b3bc3f
use precalculated max_tick_height ( #5134 )
2019-07-17 00:19:38 -07:00
f88c72c41e
stress tweaks ( #5140 )
2019-07-16 22:04:40 -07:00
9f678cc32a
Show stake pubkey
2019-07-16 20:10:15 -07:00
57036fbcc1
Check harder on crates.io for recently published crates ( #5136 )
2019-07-16 19:09:49 -07:00
349e5001d6
clear-config.sh now works with a secondary disk ( #5135 )
2019-07-16 19:09:14 -07:00
94db9cd412
Reduce banking_stage bench copy-paste code and fix programs bench ( #4926 )
2019-07-16 18:28:18 -07:00
b505a0df22
Throw more threads at hash_internal_state ( #5023 )
2019-07-16 16:58:30 -07:00
acf096c5f7
Add cross-program invocation proposal ( #4922 )
...
automerge
2019-07-16 16:36:05 -07:00
e8583f5cfe
Bump tokio from 0.1.21 to 0.1.22 ( #4935 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 0.1.21 to 0.1.22.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-16 16:48:11 -06:00
5825b967d2
Check for valid pid before kill in node stop script ( #5126 )
2019-07-16 14:31:15 -07:00
bf5bce50a4
Fix stake pruning test ( #5124 )
2019-07-16 13:20:03 -04:00
77ea8b9b3e
Add LoaderInstruction::InvokeMain ( #5116 )
...
* Remove unreachable, untested runtime check
* tx_data -> ix_data
* Add LoaderInstruction::InvokeMain
* Add test and allow loaders to be registered statically.
* Fix clippy error
2019-07-16 10:45:32 -06:00
176cec6215
Update Rust-BPF Sysroot ( #5122 )
2019-07-16 07:42:22 -08:00
5ab4975c44
Improve validator-info CLI ( #5121 )
...
* Fix index OOB panic
* Handle 'get' empty validator-info responses properly
* Improve 'get' argument flow
* Improve arg help text
* Improve 'publish' argument flow
* Update book doc
2019-07-16 09:22:55 -06:00
7e60ee39d9
Add missing dash
2019-07-16 07:27:35 -07:00
3ea2933e2d
It's 2019
2019-07-15 20:58:21 -07:00
fe87c05423
fix transaction_count ( #5110 )
...
* fix transaction_count
* add sig count to bank hash
2019-07-15 13:42:59 -07:00
6b86f85916
Add C API ( #5072 )
2019-07-15 13:17:17 -06:00
04649de6a6
Boot remote native loads, take 2 ( #5106 )
...
* Drop dependencies on remote native loads
* Remove remote native loads
2019-07-15 13:16:09 -06:00
92d78451b1
Update expected keybase-pubkey location ( #5104 )
...
automerge
2019-07-15 09:28:06 -07:00
0c87928132
Keybase pubkey file instructions and verification for validators ( #5090 )
...
* Document publishing a pubkey on keybase
* Verify keybase-pubkey
2019-07-14 23:48:50 -06:00
db7e78bf99
Add node zone and count to ENV ( #5100 )
...
* Add node zone and count to ENV
2019-07-14 22:40:18 -06:00
adecd4cfdc
Pull testnet vars up to buildkite env ( #5098 )
2019-07-14 20:27:49 -06:00
40faaef9da
Revert "Logging ( #5017 )" ( #5096 )
...
This reverts commit b50a3bae72
.
2019-07-14 18:48:15 -07:00
9b54528c8e
Fix some nightly warnings ( #5093 )
...
ONCE_INIT => Once::new
Box<Error> => Box<dyn Error>
2019-07-14 13:37:55 -07:00
440d006ec1
Plumb --no-snapshot in from CI ( #5077 )
...
* Plumb --no-snapshot in from CI
2019-07-14 13:17:30 -06:00
6c49b10784
Purge remaining uses of Locktower ( #5076 )
...
automerge
2019-07-13 00:24:15 -07:00
c858d1dbb3
Bump tempfile from 3.0.8 to 3.1.0 ( #4882 )
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.0.8 to 3.1.0.
- [Release notes](https://github.com/Stebalien/tempfile/releases )
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/NEWS )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.0.8...v3.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-12 23:57:35 -07:00
741a0a8a4e
Correctly decode update manifest ( #5086 )
...
automerge
2019-07-12 22:55:55 -07:00
16b6576839
use precalculated max_tick_height ( #5084 )
2019-07-12 22:25:48 -07:00
6accf21229
Add epoch voting history to show-vote-account ( #5080 ) ( #5085 )
...
automerge
2019-07-12 22:01:12 -07:00
d2b21ce8d0
Stop trying to publish crates that are unpublishable
2019-07-12 21:53:09 -07:00
b01990d480
Avoid trying to republish crates already on crates.io
2019-07-12 21:43:16 -07:00
d7fdfb7e21
Give publish-crate more time
2019-07-12 20:28:10 -07:00
19fe468dbc
Add design proposal to embed Libra's Move ( #5067 )
...
* Add design proposal to embed Libra's Move
* Apply review feedback
* Pipeline VM -> the runtime
* defines -> define
2019-07-12 21:12:55 -06:00
259a5130a8
whoops ( #5083 )
2019-07-12 19:08:51 -07:00
0d27515d09
tmp dirs target to farf ( #5079 )
2019-07-12 18:28:42 -07:00
1c966aac25
Facility to generate a blocktree prune list using ledger tool ( #5041 )
...
automerge
2019-07-12 16:58:13 -07:00
d2b6c2e0ce
syscall work, rename syscall to sysvar, rename current to clock ( #5074 )
...
* syscall work, rename syscall to sysvar, rename current to clock
* missed one
* nit
2019-07-12 16:38:15 -07:00
7aecb87bce
Add a version field to blobs ( #5057 )
2019-07-12 13:43:19 -07:00
4a02914b30
Add pub key authorized list
2019-07-12 12:34:17 -07:00
7c12ecbe81
Fix unnecessary computation ( #5055 )
2019-07-12 11:30:37 -07:00
f093377805
apt-get update before installing certbot ( #5054 )
...
* apt-get update before installing certbot
2019-07-12 11:50:40 -06:00
5ac173d208
Enable GPUs and secondary disks for TdS net, pull external account file ( #5031 )
...
* Enable V100 GPUs over 3 regions for TdS cluster
* Turn on secondary config-local drive for tds net
* Enable long args bypass for GPU machine details
* bypass quoted long arg
* Pull external account file from wget
* typo
* Symlink config-local instead of changing the path variables
* Fix link path
2019-07-12 09:38:47 -06:00
9f58318fc5
Add --no-snapshot to disable booting a validator from a snapshot ( #5050 )
...
automerge
2019-07-11 21:03:17 -07:00
ebcdc06dc3
Restore ledger-tool print and json commands ( #5048 )
...
* Restore ledger-tool print and json commands
* Remove obsolete read_ledger()
2019-07-11 20:33:36 -07:00
22315d88e7
Fix credit only commit_credits race ( #5028 )
...
* Fix credit only drain race
* Refactor commit credits for tests
* Fix tests to use commit_credits_unsafe
2019-07-11 18:46:49 -07:00
0a36a78133
Fix replicator segment selection ( #5046 )
2019-07-11 18:31:41 -07:00
a25446f045
Pull in more Rust-BPF compatible built-ins ( #5043 )
2019-07-11 15:16:30 -08:00
2860d2fe27
Pull in support for Rust-BPF stack argument passing ( #5038 )
2019-07-11 14:27:18 -08:00
e4861f52e0
Add support for additional disks for config-local ( #5030 )
...
* Add support for additional disks for config-local
* Restore wrongly deleted lines
* Shellcheck
* add args in the right place dummy
* Fix nits
* typo
* var naming cleanup
* Add stub function for remaining cloud providers
2019-07-11 16:23:32 -06:00
5698d48dc8
merkle-tree: Make instantiation a little less painful ( #5037 )
...
automerge
2019-07-11 15:15:08 -07:00
5b95685e12
Add rewards to is_syscall_id() ( #5035 )
2019-07-11 13:47:22 -08:00
4c90898f0b
Dynamic erasure set configuration ( #5018 )
...
* Use local erasure session to create/broadcast coding blobs
* Individual session for each recovery (as the config might be different)
* address review comments
* new constructors for session and coding generator
* unit test for dynamic erasure config
2019-07-11 13:58:33 -07:00
a191f3fd90
add node_pubkey to vote warning ( #5033 )
2019-07-11 13:12:26 -07:00
b2c776eabc
Fix getProgramAccounts RPC ( #5024 )
...
* Use scan_accounts to load accounts by program_id
* Add bank test
* Use get_program_accounts in RPC
2019-07-11 12:58:28 -06:00
2c8d6f87e6
Add validator-info CLI ( #4970 )
...
* Add validator-info CLI
* Add GetProgramAccounts method to solana-client
* Update validator-info args, and add get subcommand
* Update ValidatorInfo lengths
* Add account filter for get --all
* Update testnet participation doc to reflect validator-info
* Flesh out tests
* Review comments
2019-07-11 12:38:52 -06:00
08f6de0acd
Plumb scan_accounts into accounts_db, adding load from storage ( #5029 )
2019-07-11 12:16:02 -06:00
bd92f37553
Terminology ( #4995 )
...
* update exchange program: tradeOrder->Order, tradeRequest->OrderRequest, tradeCancel->OrderCancel
* Update bench-exchange: tradeOrder -> Order
* update bench exchange Readme
2019-07-10 23:22:33 -06:00
2abbc89dcd
add accounts_index_scan_accounts ( #5020 )
2019-07-10 22:06:32 -07:00
8cad992170
reduce replicode in accounts, fix cast to i64 ( #5025 )
2019-07-10 21:22:58 -07:00
41d0db078e
Wait for bootstrap leader to initialize before starting other validators ( #5027 )
2019-07-10 21:03:48 -07:00
8781aebe06
Pass SOLANA_METRICS_CONFIG along to oom-monitor.sh ( #5021 )
2019-07-10 20:11:55 -07:00
727c15ef8a
start from random point in fork stores ( #5010 )
2019-07-10 18:44:49 -07:00
e4926e4110
Set exit when replicator run exits ( #5016 )
2019-07-10 16:27:18 -07:00
b50a3bae72
Logging ( #5017 )
...
* Add logging to replay_stage
* locktower logging
2019-07-10 15:52:31 -07:00
35ec7a5156
Decouple turns from segments in PoRep ( #5004 )
...
* Decouple Segments from Turns in Storage
* Get replicator local cluster tests running in a reasonable amount of time
* Fix unused imports
* Document new RPC APIs
* Check for exit while polling
2019-07-10 13:33:29 -07:00
a383ea532f
Implement new Index Column ( #4827 )
...
* Implement new Index Column
* Correct slicing of blobs
* Mark coding blobs as coding when they're recovered
* Prevent broadcast stages from mixing coding and data blobs in blocktree
* Mark recovered blobs as present in the index
* Fix indexing error in recovery
* Fix broken tests, and some bug fixes
* increase min stack size for coverage runs
2019-07-10 11:08:17 -07:00
b1a678b2db
Document getSlotsPerSegment in rpc api doc ( #5005 )
...
* Document getSlotsPerSegment in rpc api doc
2019-07-10 10:05:11 -07:00
e563a4dda3
Rename tds-testnet to tds ( #5008 )
2019-07-10 10:26:24 -06:00
dbe533385e
Improve signature checks in config_api ( #5001 )
...
automerge
2019-07-10 01:00:49 -07:00
f537482c86
remove set_leader from cluster_info ( #4998 )
2019-07-09 22:06:47 -07:00
aebd70ddce
Move letsencrypt arg to create_args
2019-07-09 21:27:12 -07:00
7d80cfb17a
Include --letsencrypt ($1)
2019-07-09 20:54:11 -07:00
b8e7736af2
Move SLOTS_PER_SEGMENT to genesis ( #4992 )
...
automerge
2019-07-09 16:48:40 -07:00
32b55e6703
Fund solana-install deployments from the mint keypair to avoid airdrops ( #4997 )
2019-07-09 16:45:28 -07:00
0a949677f0
net/ plumbing to manage LetsEncrypt TLS certificates ( #4985 )
...
automerge
2019-07-09 15:45:46 -07:00
f777a1a74c
groom replay_stage and poh_recorder ( #4961 )
...
* groom replay_stage and poh_recorder
* fixup
* fixup
* don't freeze() parent, need to review bank_forks and maybe vote...
2019-07-09 15:36:30 -07:00
d111223085
Fix always passing in remote filename, even if no accounts file ( #4993 )
...
* Fix always passing in remote filename, even if no accounts file
* typo
2019-07-09 16:07:31 -06:00
1ca7e9f67b
Add testnet-tds support to testnet manager ( #4762 )
...
* Add testnet-tds support to testnet scripts
2019-07-09 14:39:55 -06:00
bc8f435d45
Shell script nits ( #4982 )
2019-07-09 12:09:13 -08:00
5e221bf219
Make config_api more robust ( #4980 )
...
* Make config_api more robust
* Add test and update store instruction
2019-07-09 13:37:18 -06:00
fc58b3e8c3
Fix typos
2019-07-09 09:35:52 -06:00
1033f52877
Add pubkey ( #4971 )
2019-07-09 00:54:22 -07:00
4771177f9d
Update LLVM to v0.0.11 ( #4976 )
2019-07-08 23:22:49 -08:00
50c6b5d62d
Work around missing lib on linux (Issue #4972 ) ( #4975 )
2019-07-08 22:24:57 -08:00
f9a2254688
Split out Rust BPF no-std stuff ( #4968 )
2019-07-08 20:28:05 -08:00
49250f62aa
make commit_credits one trip through the rwlock ( #4969 )
2019-07-08 20:46:21 -07:00
22ef3c7c54
Blob verify ( #4951 )
...
* Ensure signable data is not out of range
* Add a broadcast stage that puts bad sizes in blobs
* Resign blob after modifyign size
* Remove assertions that fail when size != meta.size
2019-07-08 18:21:52 -07:00
417e8d5064
fix blocktree_processor test_process_entries_stress ( #4967 )
2019-07-08 18:11:58 -07:00
1feb9bea21
Harden Merkle Tree against second pre-image attacks ( #4925 )
...
* merkle-tree: Harden against second pre-image attacks
* core/chacha: Bump test golden hash
2019-07-08 19:00:06 -06:00
563c42b829
Consistant message format ( #4965 )
2019-07-08 16:07:45 -08:00
841e5e326c
Program mutable lamports ( #4964 )
2019-07-08 15:52:25 -08:00
281deae102
Update config program to accommodate multiple signers ( #4946 )
...
* Update config program to accommodate multiple signers
* Update install CLI
* Remove account_type u32; add handling for unsigned keys in list
* ConfigKeys doc
2019-07-08 18:33:56 -05:00
c5ba2e0883
bank_forks test stability ( #4959 )
...
automerge
2019-07-08 15:55:49 -07:00
eb4edd75e6
make bank commit_credits non public ( #4944 )
...
* make bank commit_credits non pub
* track down create() failure
* move bank_client to process_transaction(), which commits credits
2019-07-08 15:37:54 -07:00
bb6bcd79c0
Handle replicator errors without panicking ( #4955 )
...
* Handle replicator errors without panicking
* Unwelcome println
2019-07-08 12:43:35 -07:00
ef7022d638
Refactor replicators to not block on startup ( #4932 )
...
* Refactor replicators to not block on startup
* Ignore setup failure
2019-07-08 10:17:25 -07:00
2aac094f63
Ensure blobs are deserializable without unwrapping ( #4948 )
...
* Return result from deserializing blobs in blocktree instead of assuming deserialization will succeed
* Mark bad deserialization as dead fork
* Add test for corrupted blobs in blocktree and replay_stage
2019-07-07 14:37:12 -07:00
fc180f4cbf
Halve stake of malicious validator ( #4937 )
2019-07-05 15:45:39 -07:00
e26a0bf840
Bump env_logger from 0.6.1 to 0.6.2 ( #4879 )
...
Bumps [env_logger](https://github.com/sebasmagri/env_logger ) from 0.6.1 to 0.6.2.
- [Release notes](https://github.com/sebasmagri/env_logger/releases )
- [Changelog](https://github.com/sebasmagri/env_logger/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sebasmagri/env_logger/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-05 14:11:10 -06:00
3557975c1f
install: more little window fixes ( #4930 )
...
* Only add .exe extension if no extension was given
* Switch to ctrlc crate for freebie Windows ^C handling
2019-07-03 17:45:08 -07:00
b4aebbd991
Increment InfluxDB to 1.7 ( #4931 )
2019-07-03 17:44:49 -07:00
db13b52e6a
Bump serde_json from 1.0.39 to 1.0.40 ( #4881 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.39 to 1.0.40.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.39...v1.0.40 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-03 16:15:56 -06:00
f1f6537837
Reduce default commission from 100% to 50% ( #4929 )
2019-07-03 14:18:08 -07:00
2ec5d2c7f5
start local_cluster nodes from genesis blocks ( #4928 )
2019-07-03 14:03:52 -07:00
42e5623e26
Update rust-bpf-sysroot to v0.5 ( #4920 )
2019-07-03 11:20:21 -08:00
ab9f2adc69
[Security] Bump smallvec from 0.6.9 to 0.6.10 ( #4921 )
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 0.6.9 to 0.6.10. **This update includes security fixes.**
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-07-03 12:12:48 -07:00
f551b34725
Fix issue in polling for transaction signatures ( #4923 )
...
- Specifically if multiple confirmation for the signature is requested
2019-07-02 20:56:10 -07:00
55b8ff72d0
Enable parallel tests to reduce test time ( #4919 )
...
* Add crate to serialize some tests
* Ignore unused attribute warning
* Enable parallel run in CI
* Try to fix lograte tests
* Fix interdependent counter tests
2019-07-02 17:35:03 -07:00
bf319ab06d
Convert syscall accounts to credit only accounts ( #4915 )
2019-07-02 15:17:28 -07:00
12ef0c25b5
change vote commission to u8 (from u32) ( #4887 )
...
automerge
2019-07-02 14:18:11 -07:00
8620d0a3b2
Add curl retries
2019-07-02 08:37:18 -07:00
933ae51fcc
Add .exe extension before checking for a program file on windows ( #4902 )
2019-07-02 08:04:27 -07:00
c1201e54fa
Avoid signal-hook crate on windows ( #4900 )
2019-07-01 22:52:55 -07:00
3615445a12
Broadcast run for injecting fake blobs in turbine ( #4889 )
...
* Broadcast run for injecting fake blobs in turbine
* address review comments
* new local cluster test that uses fake blob broadcast
* added a test to make sure tvu_peers ordering is guaranteed
2019-07-01 17:54:03 -07:00
091999a17e
fix Instruction and CompiledInstruction field names ( #4895 )
...
* s/program_ids_index/program_id for Instruction
* s/program_ids_index/program_id_index for CompiledInstruction
2019-07-01 18:34:22 -06:00
417066ad30
Fix bench-tps funding math; make generate_keypairs() and fund_keys() algorithms consistent ( #4841 )
...
* Fix funding math; make generate_keypairs and fund_keys consistent
* Add test, and fix inconsistencies it exposes
* De-pow math, and use assert_eq in tests for better failure msgs
2019-07-01 18:32:03 -06:00
2abe051a1f
run command now kills child process on SIGTERM to cleanly exit ( #4896 )
...
automerge
2019-07-01 17:10:14 -07:00
65adce65fa
Always send pull responses to the origin addr ( #4894 )
2019-07-01 16:49:05 -07:00
0c8f187993
remove syscall tick height ( #4891 )
2019-07-01 16:21:51 -07:00
cbd2938035
update book with stake stuff ( #4893 )
2019-07-01 15:16:41 -07:00
0999225794
Try to gracefully terminal child process before using SIGKILL ( #4890 )
2019-07-01 14:08:30 -07:00
38b44f2496
Reduce slot duration and consecutive leader slots ( #4838 )
...
* change consecutive leader slots to 4
* reduce polling frequency for transaction signature confirmation
* adjust wait time for transaction signature confirmation
* fix nominal test
* fix flakiness in wallet pay test
2019-07-01 13:21:00 -07:00
c1953dca8f
Cleanup some of banking stage ( #4878 )
...
* Add committable transactions that cause errors like InstructionErrors back to retryable list on MaxHeightReached
* Remove unnecessary logic
* Add comments/renaming for clarity
2019-07-01 12:14:40 -07:00
19ea5fe0c0
Rework fullnode.sh to recover better from genesis block resets ( #4884 )
2019-07-01 11:54:00 -07:00
d7ed3b8024
Add RPC api to return program accounts ( #4876 )
...
automerge
2019-06-29 09:59:07 -07:00
a89589a1d5
Add Measure abstraction over measuring time intervals ( #4851 )
...
Allows one to swap in different implementations. This provides
the normal Insant::now() -> .elapsed() path.
2019-06-29 15:34:49 +02:00
41bda18046
Disable Enter prompt when stdin is not a tty ( #4874 )
2019-06-28 17:43:43 -07:00
0c832f4668
Don't prompt the user to update their PATH if --no-modify-path was supplied ( #4872 )
2019-06-28 16:45:01 -07:00
75b494d4a3
Lower warn to info, fetch from validator root instead of root + 1 ( #4870 )
...
* Lower warn to info, fetch from validator root instead of root + 1
* b/c -> because
2019-06-28 16:17:20 -07:00
f0191a98ab
Bump serde from 1.0.93 to 1.0.94 ( #4864 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.93 to 1.0.94.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-06-28 15:07:16 -07:00
76413cbfac
Ensure validator process is killed when fullnode.sh is killed ( #4869 )
...
automerge
2019-06-28 14:24:44 -07:00
0fa1af5d47
Cleanup num_threads() and batch_limit numbers ( #4852 )
2019-06-28 10:55:24 +02:00
af1c70f032
book: Add simple payment and state verification proposal ( #4200 )
...
automerge
2019-06-27 17:08:10 -07:00
278614fc7c
Impl credit-only accounts in Budget ( #4862 )
2019-06-27 19:22:21 -04:00
baca35ef4d
book: Make build a little less annoying ( #4861 )
...
automerge
2019-06-27 15:20:37 -07:00
66552d7047
Credit-Only Accounts: Cache account balance for thread-safe load/store ( #4691 )
...
* Implement CreditOnlyLocks
* Update credit-only atomic on account load
* Update credit-only atomic after bank.freeze_lock; store credits if all credit-only lock references are dropped
* Commit credit-only credits on bank freeze
* Update core to CreditAccountLocks
* Impl credit-only in System Transfer
* Rework CreditAccountLocks, test, and fix bugs
* Review comments: Pass CreditAccountLocks by reference; Tighten up insert block
* Only store credits on completed slot
* Check balance in bench_exchange funding to ensure commit_credits has completed
* Add is_debitable info to KeyedAccount meta to pass into programs
* Reinstate CreditOnlyLocks check on lock_account
* Rework CreditAccountLocks to remove strong_count usage
* Add multi-threaded credit-only locks test
* Improve RwLocks usage
* Review comments: panic if bad things happen; tighter code
* Assert lock_accounts race does not happen
* Revert panic if bad things happen; not a bad thing
2019-06-27 17:25:10 -04:00
979df17328
Bump serde_derive from 1.0.93 to 1.0.94 ( #4856 )
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.93 to 1.0.94.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.93...v1.0.94 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-06-27 13:18:19 -07:00
6cec61dcfc
Re-enable tests ( #4848 )
2019-06-27 12:09:14 -07:00
a9b044f0ab
Fix banking_stage benchmark sends ( #4850 )
...
Only one big batch was being sent so only 1
thread active at a time in the benchmark.
2019-06-27 10:37:33 +02:00
fbea9d8621
Page-pin packet memory for cuda ( #4250 )
...
* Page-pin packet memory for cuda
Bring back recyclers and pin offset buffers
* Add packet recycler to streamer
* Add set_pinnable to sigverify vecs to pin them
* Add packets reset test
* Add test for recycler and reduce the gc lock critical section
* Add comments/tests to cuda_runtime
* Add recycler to recv_blobs path.
* Add trace/names for debug and PacketsRecycler to bench-streamer
* Predict realloc and unpin beforehand.
* Add helper to reserve and pin
* Cap buffered packets length
* Call cuda wrapper functions
2019-06-27 09:32:32 +02:00
44a572416d
Save snapshots followed by accounts to avoid stale account data ( #4847 )
...
* save snapshots before account stores
* update comment
2019-06-26 23:19:55 -07:00
97c97db97e
Fix early exit clearing all buffered packets ( #4810 )
2019-06-26 22:39:50 -07:00
b8ae025f90
rsync of ledger/ and state.tgz now works on both macOS and Linux ( #4845 )
...
automerge
2019-06-26 22:10:24 -07:00
27221e28f6
Use default pubkey for solana-install sanity check
2019-06-26 21:49:22 -07:00
9a52b01171
Change to crossbeam channel in banking_threads VerifiedReceiver ( #4822 )
...
* Add crossbeam channel instead of channel in banking_stage
2019-06-26 18:42:27 -07:00
8cea650535
Handle NaN and inifinite point values ( #4839 )
2019-06-26 18:33:52 -07:00
531679eeaf
Bump generic-array from 0.13.0 to 0.13.1 ( #4801 )
...
Bumps [generic-array](https://github.com/fizyk20/generic-array ) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/fizyk20/generic-array/releases )
- [Changelog](https://github.com/fizyk20/generic-array/blob/master/CHANGELOG.md )
- [Commits](https://github.com/fizyk20/generic-array/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-06-26 17:47:12 -06:00
850f77ab3b
Minor refactor of duplicated reward claim logic ( #4835 )
...
automerge
2019-06-26 15:01:45 -07:00
4a10fd3272
Upload all artifacts
2019-06-26 14:37:18 -07:00
9e2eb9e4f9
Set CI_REPO_SLUG correctly for the solana-secondary pipeline
2019-06-26 14:37:18 -07:00
8120b57f17
Setup reward pools in genesis ( #4831 )
...
automerge
2019-06-26 13:51:17 -07:00
f651c0922a
Airdrop more token in wallet sanity due to fee ( #4830 )
...
automerge
2019-06-26 13:32:58 -07:00
8d2ec20201
Tidied up intro paragraph ( #4819 )
...
I tidied up the intro paragraph!
2019-06-26 12:12:25 -07:00
dce1f80aac
Made tiny change to second paragraph ( #4820 )
...
Replaced 'it's' with 'Solana
2019-06-26 12:12:11 -07:00
df1c473341
Add storage point tracking and tie in storage rewards to economics ( #4824 )
...
* Add storage point tracking and tie in storage rewards to epochs and economics
* Prevent validators from updating their validations for a segment
* Fix test
* Retain syscall scoping for readability
* Update Credits to own epoch tracking
2019-06-26 10:40:03 -07:00
8a64e1ddc3
add fee burning ( #4818 )
2019-06-26 10:13:21 -07:00
eb47538a82
Bump chrono from 0.4.6 to 0.4.7 ( #4812 )
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.6 to 0.4.7.
- [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.6...v0.4.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-06-26 07:58:41 -06:00
861d6468ca
Stake weighted pruning for the gossip network ( #4769 )
...
* Stake weighted pruning
* Fix compile error
* Fix clippy errors
* Add helper for creating a connected staked network
* Bug fixes and test groundwork
* Small refactor
* Anatoly's feedback and tests
* Doc updates
* @rob-solana's feedback
* Fix test bug and add log trace
* @rob-solana's feedback
2019-06-26 00:30:16 -07:00
d6737b8cc9
Set epoch schedule in set_root in leader schedule cache ( #4821 )
2019-06-26 00:19:48 -07:00
30592f2b12
Integration tests for stake API ( #4811 )
...
* more tests for rewards redemption
* break circular deps
* code review
2019-06-25 23:00:35 -07:00
1f950781c2
Use temp path for append_vec tests ( #4765 )
...
* Use temp path for serialize test
* set account path
2019-06-25 16:11:57 -07:00
f20ba423ca
Merklize PoH TX mixin hash ( #4644 )
2019-06-25 14:44:27 -06:00
c5e6ebb496
Create snapshots sparsely ( #4815 )
2019-06-25 12:10:17 -07:00
9e7f618cff
Set proper count value for account stores ( #4797 )
...
* set count values for store accounts
* Use AppendVecId type
2019-06-25 07:21:45 -07:00
74a06e4230
Update thinclient to resend the same tx until its blockhash expires ( #4807 )
2019-06-24 16:46:34 -07:00
70f93cc126
remove mining_pool from stake_state ( #4804 )
2019-06-24 16:01:02 -07:00
3f8ff23125
Forward transactions to the leader for next Nth slot ( #4806 )
...
* review comments
2019-06-24 15:56:50 -07:00
29611fb61d
tower consensus naming ( #4598 )
...
s/locktower/tower/g
2019-06-24 13:41:23 -07:00
407b1d3e6f
Bump console from 0.7.5 to 0.7.7 ( #4798 )
...
Bumps [console](https://github.com/mitsuhiko/console ) from 0.7.5 to 0.7.7.
- [Release notes](https://github.com/mitsuhiko/console/releases )
- [Commits](https://github.com/mitsuhiko/console/compare/0.7.5...0.7.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-06-24 05:40:15 -07:00
206e62271b
Ignore flaky test_two_unbalanced_stakes ( #4794 )
...
automerge
2019-06-23 20:55:43 -07:00
4e78354ab6
Bump serde_derive from 1.0.92 to 1.0.93 ( #4790 )
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.92 to 1.0.93.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-06-23 20:23:41 -07:00
1561d9c8d4
Remove --storage-mining-pool-lamports ( #4792 )
2019-06-23 20:19:53 -07:00
0e1480b84e
Bump serde from 1.0.92 to 1.0.93 ( #4791 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.92 to 1.0.93.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.92...v1.0.93 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-06-23 17:23:41 -07:00
fd6047d1c5
Add validation tip
2019-06-23 09:10:39 -07:00
b0467be393
Add quotes
2019-06-23 09:09:12 -07:00
1b0b095813
Setup v0.1[78] backport label
2019-06-23 09:04:43 -07:00
bd43724dfc
Don't set automerge label the PR has status failures
2019-06-22 20:52:32 -07:00
11992946a4
Add storage reward pools ( #4779 )
2019-06-22 17:18:35 -07:00
0cc8a841ab
set automerge label on mergify backport PRs ( #4788 )
2019-06-22 09:00:00 -07:00
23b6b85bf0
Prevent Travis/Appveyor from trying to build mergify branches ( #4786 )
2019-06-22 08:42:27 -07:00
96b56fa6f7
Update authorized public key ( #4783 )
2019-06-22 08:33:39 -07:00
405ca1bcb2
Add instructions and processor for stake deactivation ( #4781 )
...
automerge
2019-06-21 23:45:03 -07:00
c6316bb24b
Initial mergify config
2019-06-21 22:50:17 -07:00
b7f169e06e
Program instruction to withdraw un-staked lamports from stake account ( #4780 )
2019-06-21 22:28:34 -07:00
e4b466874c
Remove storage-mining-pool-keypair arg
2019-06-21 21:38:03 -07:00
9911942dbd
Increment cargo.toml files to v0.17.0
2019-06-22 04:35:25 +00:00
8acbb4ab2f
Bank cap rpc ( #4774 )
...
* core/rpc: Name magic number for minted lamports in tests genesis block
* core/rpc: Expose bank::capitalization() via getSolTotalSupply RPC method
* book: Add entry for getTotalSupply RPC method
2019-06-21 21:00:26 -07:00
a49f5378e2
rewrite vote credits redemption to eat from rewards_pools on an epoch-sensitive basis ( #4775 )
...
* move redemption to rewards pools
* rewrite redemption, touch a few other things
* re-establish test coverage
2019-06-21 20:43:24 -07:00
f39e74f0d7
serde the full FeeCalculator ( #4778 )
...
automerge
2019-06-21 17:23:26 -07:00
22b767308a
Add insturctions to run a replicator on testnet ( #4733 )
2019-06-21 16:32:23 -07:00
36aa876833
Avoid linking with CUDA directly
2019-06-21 15:26:22 -07:00
06ba0b7279
Remove holding cluster_info lock while forwarding packets ( #4773 )
2019-06-21 15:21:49 -07:00
a38e1a81ef
Call do.sh from anywhere ( #4771 )
2019-06-21 12:26:17 -07:00
da925142d1
Update replicator ports and silence socket timeout on windows ( #4770 )
...
automerge
2019-06-21 11:28:52 -07:00
5feeb257bb
Seperate out BPF Loader helpers ( #4768 )
2019-06-21 11:08:50 -07:00
06c547094a
Add Merkle Tree implementation ( #4749 )
...
automerge
2019-06-21 10:22:21 -07:00
a40c5cf185
Update storage contract to use a deterministic BTreeMap ( #4763 )
2019-06-21 09:51:05 -07:00
deb83cdef6
Bump rayon from 1.0.3 to 1.1.0 ( #4729 )
...
automerge
2019-06-21 09:32:41 -07:00
20db335aed
Bump reqwest from 0.9.17 to 0.9.18
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.17 to 0.9.18.
- [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.9.17...v0.9.18 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-06-21 08:50:49 -07:00
407db65336
Add 128bit Rust BPF test ( #4766 )
...
automerge
2019-06-21 02:43:50 -07:00
9c5a3cd277
Update Rust BPF to v0.1.2 ( #4767 )
2019-06-21 02:15:42 -07:00
138a49e820
Fix paths ( #4764 )
2019-06-21 00:08:02 -07:00
36c9e22e3d
Revert "Dynamic erasure ( #4653 )"
...
This reverts commit ada4d16c4c
.
2019-06-20 20:53:03 -07:00
aa0f8538ed
Fix client script arguments in the book ( #4760 )
2019-06-20 19:59:20 -07:00
4177c56c51
Use real panic that reports file/line ( #4758 )
2019-06-20 19:10:03 -07:00
425ac8d520
Remove need to use null when passing Rust strings ( #4756 )
2019-06-20 19:09:50 -07:00
ada4d16c4c
Dynamic erasure ( #4653 )
...
Remove erasure-related constants
Remove unneeded `Iterator::collect` call
Document erasure module
Randomize coding blobs used for repair
2019-06-20 20:27:41 -05:00
4069ef2e02
Install xargo once ( #4753 )
2019-06-20 16:49:33 -07:00
ace98bba08
Upgrade BPF sysroot to v0.4 ( #4754 )
2019-06-20 16:41:49 -07:00
e59b53dfa8
BPF rust language updates ( #4752 )
2019-06-20 16:07:12 -07:00
aacb38864c
Mark dead forks in replay stage ( #4715 )
...
* Add DeadSlots column family
* Filter dead forks from get_slots_since
* Mark erroring slots as dead in replay stage, add test
* Mark dead forks in progress instead of removing them
* Fix logging process_entries failures in replay_stage
* Unignore test_fail_entry_verification_leader
2019-06-20 15:50:41 -07:00
33d13a3aea
Update inflation.rs
2019-06-20 12:37:24 -07:00
1f0f947ed2
add validator rewards pools ( #4742 )
...
* add validator rewards pools
* populate rewards syscall
2019-06-20 12:22:29 -07:00
6854c64a09
Bump coverage build timeout
2019-06-20 09:24:11 -07:00
4a32bc48d2
ignore unstable test_repairman_catchup
2019-06-20 09:24:11 -07:00
b430762a23
check rust programs ( #4688 )
2019-06-20 07:43:31 -07:00
f8523db51d
Revert "remove build --all ( #4737 )" ( #4745 )
...
This reverts commit 63503ad589
.
2019-06-19 23:21:10 -07:00
48b11d1841
Initialize paths for non existent accounts ( #4744 )
2019-06-19 23:15:22 -07:00
3600a926df
protect against corruption ( #4741 )
2019-06-19 21:29:36 -07:00
c228792967
Add blocktree and repair_service to SUMMARY.md ( #4738 )
2019-06-19 20:10:04 -07:00
7ea522e851
add rewards syscall, groom some others ( #4740 )
2019-06-19 19:46:47 -07:00
63503ad589
remove build --all ( #4737 )
...
* remove build all
* Update test-stable.sh
2019-06-19 17:36:25 -07:00
9800e09431
Thread pool for par_iter in EntrySlice::verify ( #4732 )
...
* Use thread pool for entry verify par iter
* some performance metrics
* check batch size and use CPU for smaller batches
2019-06-19 16:31:32 -07:00
2e2b1881f5
move genesis_block to builder pattern ( #4736 )
2019-06-19 15:40:39 -07:00
61483c18ca
Change seed for retransmit to use blob signature ( #4727 )
...
* Switch seed for retransmit to use blob signature
* Use seed_len
* Use last bytes of signature as seed instead of first bytes
2019-06-19 15:36:06 -07:00
a5279bb835
Don't ship bench-streamer
2019-06-19 12:37:35 -07:00
357554b209
Cache target/
2019-06-19 12:37:35 -07:00
41fbdc6e08
use stake ( #4721 )
2019-06-19 11:54:52 -07:00
8bd1c57448
Defer CUDA selection to env.sh, also always create env.sh
2019-06-19 08:47:27 -07:00
2562e48b9d
Check for non zero count value
2019-06-19 08:47:12 -07:00
46bb79df29
Support for custom BroadcastStage in local cluster tests ( #4716 )
...
* Refactor BroadcastStage to support custom implementations, add FailEntryVerificationBroadcastRun implementation
* Plumb switch on broadcast type through validator
* Add test for validator generating non-verifiable entries to local_cluster
* Fix bad initializers
* Refactor broadcast run code into utils
2019-06-19 00:13:19 -07:00
6bc0d2a0cb
exit with success even if no CUDA version detected
2019-06-18 21:18:13 -07:00
465cd45833
Various Snapshot generation improvements
...
* Only a single snapshot is maintained to avoid unbounded disk growth
* Snapshot is stored as a compressed tar archive for faster rsyncing
* Any validator node may now generate snapshots
* Updated testnet scripts to generate snapshots on the blockstreamer node
2019-06-18 20:11:09 -07:00
b4484b89c3
'
2019-06-18 19:13:44 -07:00
c029f069f0
Cache .cargo for faster builds
2019-06-18 19:11:36 -07:00
fdb57bc5db
Add Rust BPF Tick Height test ( #4718 )
2019-06-18 15:56:24 -07:00
e43a634944
Calculate bench client lamports based on signature fee ( #4713 )
...
* use fee calculator to compute max fee
* review comments
* shellcheck
2019-06-18 14:44:53 -07:00
2da7c7fbd3
Bump nix from 0.14.0 to 0.14.1 ( #4642 )
...
automerge
2019-06-18 11:36:26 -07:00
5683282c94
Update to solana-perf-libs v0.14.0, with support for both CUDA 10.0 and 10.1
2019-06-18 10:41:03 -07:00
44967abd1c
update storage len
2019-06-17 22:48:27 -07:00
8b41a5d725
periodically save config in separate folders
2019-06-17 22:48:27 -07:00
07c183bb84
Fix test
2019-06-17 22:48:27 -07:00
7fd879b417
Restart validator nodes from snapshots
2019-06-17 22:48:27 -07:00
dc5c6e7cf8
validator restart
2019-06-17 22:48:27 -07:00
bd633d2b81
Add CI_REPO_SLUG ( #4714 )
...
automerge
2019-06-17 20:42:09 -07:00
feeaad619a
Avoid panic if no rpc peers exist
2019-06-17 19:47:45 -07:00
b44d8c394e
Only add --mining-pool arg when a mining pool keypair exists
2019-06-17 19:47:45 -07:00
0ff9c4cd8e
add stake warmup and cool down ( #4711 )
2019-06-17 19:34:21 -07:00
9cafd1f85e
Change check_txs to ignore recv errors and re-enable test ( #4593 )
...
Use more chunks to avoid duplicate signature failures:
Duplicate signatures can occur because bank.clear_signatures()
can occur before the bank has actually committed the signatures
to the status cache and then error out on the next set of transactions.
2019-06-17 19:04:21 -07:00
7fe10ba060
Don't start drone if primordial accounts are created for nodes ( #4704 )
...
* disable wallet sanity if no airdrops
2019-06-17 18:15:22 -07:00
cc48773b03
Add "download from replicator" utility ( #4709 )
...
automerge
2019-06-17 18:12:13 -07:00
8fbf0e2d9f
Update replicators to use the storage blockhash to generate offsets ( #4712 )
2019-06-17 16:39:26 -07:00
d86358eedc
add Account::new_data ( #4701 )
...
* add account_new_data
* fixup
* fixup
2019-06-17 15:58:05 -07:00
fe04fb4cd3
Refetch perf-libs when the release version is changed ( #4706 )
...
automerge
2019-06-17 14:31:41 -07:00
de3f7e9634
Update Rust program build script paths ( #4707 )
2019-06-17 14:24:00 -07:00
5e8fcdbe1d
Set {min,max}_lamports_per_signature correctly when fees don't adjust ( #4705 )
...
automerge
2019-06-17 13:18:12 -07:00
3ee7256c0c
Add cuda docs
2019-06-17 12:42:59 -07:00
2a7a9fdf03
Re-org SDK dir ( #4690 )
2019-06-17 11:04:38 -07:00
5bf87de136
Add obvious log message indicating CUDA feature state
2019-06-17 11:01:55 -07:00
97a136ea20
Set rustc-cfg=cuda explicitly, also code cleanup
2019-06-17 11:01:55 -07:00
735dfab02e
decomma
2019-06-17 11:01:55 -07:00
b5f65ce49c
Link cuda feature validator/ to core/
2019-06-17 11:01:55 -07:00
a283863694
Add storage-mining-pool genesis params
2019-06-14 20:25:39 -07:00
25908feef9
Fund accounts with the worst-case fee
2019-06-14 19:52:44 -07:00
b91ad6fd96
Clear C dependency files from cache ( #4692 )
2019-06-14 19:11:16 -07:00
02abf422df
Serialize genesis block using bincode ( #4687 )
...
* use mmap to read the genesis block, and deserialize
2019-06-14 14:22:52 -07:00
3fe5f886d7
change store to store_account ( #4689 )
2019-06-14 13:34:15 -07:00
4c6a6d63bf
add MiningPools, fund validator MiningPools from inflation ( #4676 )
...
* add MiningPool fund validator MinigPools from inflation
* fixup
* finish rename of MINIMUM_SLOT_LENGTH to MINIMUM_SLOTS_PER_EPOCH
* deterministic miningpool location
* point_value, not credit_value... use f64
2019-06-14 11:38:37 -07:00
589a9d3a72
Create aligned number of keypairs so they all get funded ( #4685 )
2019-06-14 11:11:52 -07:00
bd884a56bf
Install libssl1.1 better
2019-06-14 08:01:22 -07:00
119467df59
Add storage mining pool to genesis and implement automatic reward redeeming ( #4683 )
...
* Add storage mining pool to genesis and implement automatic reward collection
* Address review comments
2019-06-13 22:30:51 -07:00
ee68b9800e
Wait for nodes to boot up before launching other nodes and client ( #4682 )
...
* Wait for nodes to bootup in testnet
* increase timeout (as with multiple clients it takes even longer)
2019-06-13 19:37:36 -07:00
c6b4a3a706
Witness account data in Budget ( #4650 )
...
* Add support for contracts based on account data to Budget
* Add program_id to account constraints
* No longer require a signature for the account data witness
* Rename bank::store to store_account
* fmt
* Add a doc
* clippy
2019-06-13 18:20:28 -07:00
b1ac8f933b
Fix storage program space issues and limit storage transaction data ( #4677 )
2019-06-13 17:53:54 -07:00
9e3758983d
Find max root and purge roots below it. ( #4645 )
...
* Test for forking accounts
* Find max root and purge roots below it.
2019-06-13 17:35:16 -07:00
34c0537e9b
update book with staking changes ( #4679 )
2019-06-13 16:24:03 -07:00
8628f33d0b
Fix HostId field in the testnet dashboard
2019-06-13 16:09:09 -07:00
ed05aeaef8
Permit datapoints with no fields
2019-06-13 16:09:09 -07:00
e1444a9b00
Add curl retries
2019-06-13 15:05:07 -07:00
9514169bf6
Ensure volume mountpoints exist
2019-06-13 15:05:07 -07:00
fa8394f526
Initial documentation for validator metrics
2019-06-13 15:05:07 -07:00
1cd8c1865e
Generate random passwords and keep them out of the environment/program args
2019-06-13 12:37:39 -07:00
e3f895d7d4
Create bench exchange accounts in genesis block ( #4655 )
...
* fix script
* review comments
2019-06-13 11:51:35 -07:00
8abf22f34b
Temporarily revert: Convert System Transfer accounts to credit-only ( #4670 )
2019-06-13 11:01:09 -06:00
a016bc2736
Add infra to publish metrics tarball
2019-06-13 10:00:24 -07:00
470debef16
Inline metrics/scripts dependencies
2019-06-13 10:00:24 -07:00
c147dc3028
Update README
2019-06-13 10:00:24 -07:00
bdd95b2286
Generate local dashboard to avoid duplication
2019-06-13 10:00:24 -07:00
efe676bc94
Minor script refactoring/refinement
2019-06-13 10:00:24 -07:00
fc34687687
Create write-only user, default to custom grafana
2019-06-13 10:00:24 -07:00
6042ccf496
Streamline grafana.ini
2019-06-13 10:00:24 -07:00
f1197e1b1f
Adjust datasource name
2019-06-13 10:00:24 -07:00
8c1b9a0b67
Data plane verification ( #4639 )
...
* Add signature to blob
* Change Signable trait to support returning references to signable data
* Add signing to broadcast
* Verify signatures in window_service
* Add testing for signatures to erasure
* Add RPC for getting current slot, consume RPC call in test_repairman_catchup for more deterministic results
2019-06-12 16:43:05 -07:00
0da9ac1a47
Remove unnecessary parameter element ( #4666 )
...
* Stop passing pubkey ref unnecessarily
* Cargo.lock
2019-06-12 16:18:27 -06:00
c1f316721a
Clean up some error handling ( #4667 )
...
Shouldn't call exit from a library function.
2019-06-12 15:01:59 -07:00
8e86014311
Update stakers_slot_offset if slots_per_epoch is adjusted ( #4660 )
2019-06-12 14:12:17 -07:00
d807217be7
Simplify and camelCase getEpochVoteAccounts RPC API ( #4658 )
...
* Simplify and camelCase getEpochVoteAccounts RPC API
* Set a commission for testing
2019-06-12 14:12:08 -07:00
bc44516eb4
Add test to exercise more args then registers ( #4661 )
2019-06-12 13:04:53 -07:00
b78a13d42c
Nits ( #4662 )
2019-06-12 13:04:24 -07:00
0dcdc37fec
Split BPF loader to match the rest of the programs ( #4636 )
2019-06-12 08:49:59 -07:00
dd1c3514a8
Use auto hashes-per-tick config for testnet testnet
2019-06-12 08:40:56 -07:00
767efab941
add inflation to genesis ( #4652 )
...
* add inflation to genesis
* avoid having to write new()
2019-06-11 21:42:31 -07:00
288a3bdcd9
Provision bench client accounts in genesis block ( #4648 )
...
* fixes to script
* shellcheck
* address review comments
2019-06-11 18:47:35 -07:00
8019bff391
Fixes for storage program and rework storage stage ( #4654 )
...
automerge
2019-06-11 18:27:47 -07:00
575a897ffc
track market cap ( #4643 )
...
* track market cap
* fixup, rebase
* prettier
2019-06-11 17:04:13 -07:00
697228a484
rpc vote_accounts by ecurrent pocch, not stakers epoch ( #4651 )
2019-06-11 16:57:47 -07:00
ca907f37c3
fix cuda testnet compilation errors ( #4649 )
2019-06-11 15:30:39 -07:00
439e7cc26a
Add dependent crate test ( #4647 )
...
automerge
2019-06-11 11:45:12 -07:00
3217a1d70c
use highest staked node as bootstrap leader, remove bootstrap_leader from genesis_block ( #4635 )
...
* use highest staked node as bootstrap leader, remove bootstrap_leader from genesis_block
* clippy
* fixup
* fixup
2019-06-11 11:44:58 -07:00
6dbba86cc6
Cleanup rust-utils ( #4646 )
...
automerge
2019-06-11 11:42:30 -07:00
8cc863ea6c
Bump libloading from 0.5.0 to 0.5.1 ( #4640 )
...
Bumps [libloading](https://github.com/nagisa/rust_libloading ) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/nagisa/rust_libloading/releases )
- [Commits](https://github.com/nagisa/rust_libloading/compare/0.5.0...0.5.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-06-11 11:21:45 -07:00
1d957b6b80
Bump byteorder from 1.3.1 to 1.3.2 ( #4641 )
...
Bumps [byteorder](https://github.com/BurntSushi/byteorder ) from 1.3.1 to 1.3.2.
- [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.1...1.3.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-06-11 11:21:26 -07:00
e56430c9fb
make runtime depend on bpf_loader ( #4601 )
...
* make runtime depend on bpf_loader
* remove vote redundancy, move bpf_loader to genesis, export program\! from bpf_loader crate
* move bpf_loader specification into genesis
* bpf tests to use genesis with bpf
* need to avoid depending on programs, except for macros
2019-06-11 10:27:22 -07:00
e4d8ea11ac
Make lamports_per_signature dynamic based on cluster load ( #4562 )
...
* Make lamports_per_signature dynamic based on cluster load
* Move transaction-fees.md to implemented
2019-06-10 22:18:32 -07:00
a4035a3c65
Remove record locks and parent locks from accounts ( #4633 )
...
* Revert "Fix parent record locks usage in child banks (#4159 )"
This reverts commit 69eeb7cf08
.
* Revert "Fix DuplicateSignatures caused by races on frozen banks (#3819 )"
This reverts commit 083090817a
.
* Remove unused imports
2019-06-10 22:05:46 -07:00
807c69d97c
Slimmer implementation of credit-only accounts ( #4592 )
...
* Add credit-only debit/data check to verify_instruction
* Store credits and pass to accounts_db
* Add InstructionErrors and tests
* Relax account locks for credit-only accounts
* Collect credit-only account credits before passing to accounts_db to store properly
* Convert System Transfer accounts to credit-only, and fixup test
* Functionalize collect_accounts to unit test
* Review comments
* Rebase
2019-06-10 20:50:02 -06:00
9259d342ac
Facility to provision primordial accounts for fullnodes in genesis block ( #4631 )
...
* updated usage
* shellcheck
* support replicators
* disable airdrops if primordial accounts are used
* review comments
2019-06-10 19:42:49 -07:00
b4d4edb645
Restore cargo install to work around --features= 'feature' ( #4627 )
2019-06-10 18:49:08 -07:00
966b6999d1
Accounts index opt ( #4621 )
...
* Add accounts_index bench
* Don't take the accounts index lock unless needed
* Accounts_index remove insert return vec and add capacity stats
* Use hashbrown hashmap for accounts_index
2019-06-10 18:15:39 -07:00
73491e3ca1
bump libssl ( #4634 )
2019-06-10 18:03:13 -07:00
d1d53c3fb6
calculate stake from activated amount ( #4630 )
2019-06-10 16:17:29 -07:00
a77e576cd9
void key
2019-06-10 15:54:32 -07:00
9e14cde461
Revert "Fix roots never being purged ( #4134 )" ( #4628 )
...
automerge
2019-06-10 14:08:09 -07:00
a2a7c86c0d
Move Testnet Participation under Getting Started
2019-06-10 13:53:31 -07:00
38aeed02fc
Ignore dependabot branches
2019-06-10 12:50:48 -07:00
64d63966c7
Bump jsonrpc crates to 12.0.0 ( #4553 )
...
* Bump jsonrpc-pubsub from 11.0.0 to 12.0.0
Bumps [jsonrpc-pubsub](https://github.com/paritytech/jsonrpc ) from 11.0.0 to 12.0.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/commits/v12.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Update all jsonrpc crates
2019-06-10 13:22:57 -06:00
38ae54b720
Bump walkdir from 2.2.7 to 2.2.8 ( #4615 )
...
Bumps [walkdir](https://github.com/BurntSushi/walkdir ) from 2.2.7 to 2.2.8.
- [Release notes](https://github.com/BurntSushi/walkdir/releases )
- [Commits](https://github.com/BurntSushi/walkdir/compare/2.2.7...2.2.8 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-06-10 12:19:45 -07:00
a18c0e34f4
add activate_stake to stake_api ( #4600 )
2019-06-10 12:17:29 -07:00
be3a0b6b10
Build/clean all ( #4626 )
...
automerge
2019-06-10 11:15:28 -07:00
9f6496d38a
Panic filename ( #4625 )
...
automerge
2019-06-10 11:00:15 -07:00
1fa31c9410
.iter fixed, drop enumerate where not needed ( #4624 )
...
automerge
2019-06-10 10:19:58 -07:00
2b5e757d57
Adjust slack notification
2019-06-10 07:44:31 -07:00
0dbe5ee559
Add chacha-sys crate ( #4620 )
...
* af9ff9c7f9/src/cpu-crypt
* Add chacha-sys crate
* Remove chacha feature
* Remove erasure feature
* Add .gitignore
2019-06-10 07:14:02 -07:00
6926e89e86
Minor doc update
2019-06-08 19:36:37 -07:00
ec0007217d
Modify HKEY_CURRENT_USER\Environment\PATH on Windows ( #4614 )
...
Thanks for the Windows registry editing code rustup.rs!
2019-06-08 19:25:02 -07:00
91b23f8316
Switch from solana-install to solana-install-init
2019-06-08 19:24:36 -07:00
2fd8d57504
Print path normally to avoid forward slash escaping
2019-06-08 19:22:17 -07:00
0595109f98
Add solana-install-init binary ( #4613 )
...
* Add solana-install-init binary
* Add Enter prompt on solana-install-init exit for Windows users
2019-06-08 19:01:22 -07:00
9f46b2a6ce
Avoid weird paths on Windows ( #4612 )
...
automerge
2019-06-08 17:23:34 -07:00
a357d08524
Avoid unnecessary re-downloading if |solana-install init| is invoked repeatedly ( #4611 )
2019-06-08 17:15:16 -07:00
177c9cc026
-f
2019-06-08 16:33:22 -07:00
0c4cb76acf
Add GPU based PoH verification ( #4524 )
...
* Add GPU poh verify
* Switch to single PoH verify function
* Add EntrySlice verify tests with hashes and txs
* Add poh-verify benchmarks
2019-06-08 10:21:43 -06:00
8676b5d40c
Use more -f
2019-06-07 22:18:55 -07:00
efab896c9e
Ignore unencrypted file
2019-06-07 21:38:30 -07:00
97b9d57b62
shellcheck
2019-06-07 21:35:51 -07:00
487826a539
Deploy windows updates
2019-06-07 20:46:58 -07:00
4acb764589
Pick up .exe extension
2019-06-07 20:13:47 -07:00
9de4c1dcd9
Add slack notification
2019-06-07 19:58:52 -07:00
e8c4302d6d
Add Appveyor CI for Windows release artifacts
2019-06-07 19:47:26 -07:00
a9f73ea321
solana-keygen no longer blindly overwrites a keypair, or assumes "new" ( #4599 )
...
automerge
2019-06-07 17:54:54 -07:00
66c41b3e8c
Enable iter test ( #4542 )
...
automerge
2019-06-07 16:44:14 -07:00
8435fbfa0b
Travis window support is too unstable, disable for now
2019-06-07 15:17:27 -07:00
9a4c449135
Builtins ( #4594 )
...
automerge
2019-06-07 14:38:49 -07:00
ac6dbf8f04
Broadcast blobs even if the peers have no stake ( #4597 )
2019-06-07 14:12:27 -07:00
b55927370b
Restore OS -> TARGET map
2019-06-07 13:22:40 -07:00
002fbc4d53
Add |wallet fees| subcommand for easy viewing of the current cluster fees ( #4596 )
2019-06-07 13:11:56 -07:00
53deb7919c
Update book for Turbine ( #4583 )
2019-06-07 13:03:05 -07:00
8e46c44f3e
Deploy mac OS solana-install update package to testnets ( #4595 )
2019-06-07 12:59:58 -07:00
37c2fa1d8d
add current to bank syscalls ( #4581 )
2019-06-07 11:41:34 -07:00
fdaa939892
Bring in Travis CI to build Windows and mac OS release binaries ( #4591 )
...
* Bring in Travis CI to build Windows and mac OS release binaries
* Update .travis.yml
2019-06-07 11:32:47 -07:00
c9d63204eb
Replace unneeded seqcst with relaxed on atomic operations ( #4587 )
2019-06-06 23:53:21 -07:00
cfab54511b
Ignore bench_banking_stage_multi_accounts ( #4590 )
...
automerge
2019-06-06 21:47:07 -07:00
492cc93850
Limit short_vec length to u16, usize is overkill for our usage ( #4588 )
2019-06-06 20:18:41 -07:00
fd9fd43e83
add solana_name_id, reassociate names with modules, modularize id tests ( #4580 )
2019-06-06 19:27:49 -07:00
191483f4ee
Facility to add accounts with specific balance to genesis block ( #4585 )
...
* Facility to add accounts with specific balance to genesis block
* address review comments
2019-06-06 19:24:09 -07:00
688f8a669a
Add a storage accounts cache to Bank ( #4578 )
2019-06-06 17:40:01 -07:00
46eea85022
Improve error message
2019-06-06 17:06:56 -07:00
1c765124e7
Clean up .configured flag handling to work with an external identity keypair ( #4579 )
...
automerge
2019-06-06 14:51:48 -07:00
194491ae96
Removed some dead code ( #4563 )
...
* Removed some dead code
* remove dead code from Replicator
2019-06-06 14:26:12 -07:00
2ae595294c
fullnode.rs: restart the node correctly on non-zero exit
2019-06-06 13:46:46 -07:00
ead947e710
Change default setting for real PoH in testnet scripts ( #4573 )
2019-06-06 12:49:46 -07:00
82df267ec9
s/avalanche/turbine ( #4561 )
...
* s/avalanche/turbine/g
2019-06-06 12:48:40 -07:00
53275cc678
Introduce normalized CI environment vars: ci/env.sh ( #4571 )
2019-06-06 12:20:47 -07:00
44835a91db
Update PoRep entry in the book ( #4560 )
...
* Rework PoRep design doc
* Define the stages of the PoRep game
* Add that the stages are really transactions
* Update turn count
* Review comment + clarification
* More clarification
* Rephrase for clarity
2019-06-06 12:16:54 -07:00
ee42040e6b
Give coverage build more time ( #4572 )
...
automerge
2019-06-06 11:07:32 -07:00
2b98a16ec6
Upgrade to rust stable 1.35.0 ( #4568 )
2019-06-06 09:24:38 -07:00
aa4a7b0c73
Disable |solana-install| check for edge/beta testnets ( #4564 )
...
The release tarball URL changes for these testnets, which causes the
normal |solana-install| check to fail and the testnet is unnecessarily
rebooted.
2019-06-05 15:31:29 -07:00
8f50c3dd2e
Be explicit about return status
2019-06-05 14:12:06 -07:00
9c47ce30a7
shift
2019-06-05 12:06:54 -07:00
3433b08b8c
remove unnecessary wrapper ( #4559 )
2019-06-05 11:43:41 -07:00
d26fd27bf9
Avoid sudo in tune-system.sh unless requested by the user ( #4556 )
2019-06-05 09:10:23 -07:00
5c98c1d306
Sanity check that runs on the blockstreamer node now checks that node instead of the bootstrap leader ( #4551 )
...
automerge
2019-06-04 22:46:48 -07:00
51aacfe3ca
Use pure-rust reed-solomon-erasure for windows ( #4548 )
2019-06-04 21:49:27 -07:00
82bd2df986
Use Library::new() for windows ( #4544 )
2019-06-04 21:49:05 -07:00
aa88c40a9e
multi_bind_in_range(): limit to 1 socket in windows ( #4549 )
2019-06-04 20:55:02 -07:00
8ec5a47027
Add EntryWriter::write() stub for windows ( #4546 )
2019-06-04 20:15:37 -07:00
5bd3eb4557
Up number of threads ( #4541 )
2019-06-04 18:01:28 -07:00
e9cb4a12dc
Bump serde_derive from 1.0.91 to 1.0.92 ( #4505 )
...
automerge
2019-06-04 15:48:23 -07:00
de5cad9211
Add account owner to Storage Accounts ( #4537 )
...
* Add account owner to Storage Accounts
* Fix tests
2019-06-04 14:52:52 -07:00
e3365529de
Enable transaction fees for multinode-demo/ and net/ ( #4527 )
...
* Collect fees at the end of a slot
* Enable transaction fees for multinode-demo/ and net/
2019-06-04 14:51:52 -07:00
ce2ce76958
Bump serde from 1.0.91 to 1.0.92 ( #4504 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.91 to 1.0.92.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.91...v1.0.92 )
2019-06-04 14:32:09 -07:00
16f2fb5c09
Bump tokio from 0.1.20 to 0.1.21 ( #4489 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 0.1.20 to 0.1.21.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-0.1.20...tokio-0.1.21 )
2019-06-04 14:31:29 -07:00
d77c98530f
Bump libc from 0.2.55 to 0.2.58 ( #4514 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.55 to 0.2.58.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.55...0.2.58 )
2019-06-04 14:31:06 -07:00
fe40b75ac6
Bench TPS tweaks for transaction fees ( #4538 )
...
* use lamports_per_signature instead of hard coding it in bench client
2019-06-04 13:56:11 -07:00
e7129757c9
store_accounts to use try_available ( #4523 )
...
* store_accounts to use try_available
* tighter
* clippy
2019-06-04 11:21:12 -07:00
3635a68129
solana-install now compiles for Windows ( #4531 )
...
automerge
2019-06-04 08:51:20 -07:00
70a16e91a5
Randomize avalanche broadcast peer table for each blob ( #4529 )
...
* fix clippy warnings
2019-06-03 20:38:05 -07:00
41daf1ef0c
Wait for crate to be locatable on crates.io after uploading ( #4526 )
...
* Wait for crate to be locatable on crates.io after uploading
* Fix nits and shellcheck
* shellchecker
2019-06-03 19:54:41 -06:00
ff77789718
Collect fees at the end of a slot ( #4525 )
2019-06-03 18:40:20 -07:00
a77775cb58
Move validation submissions into its own fn ( #4528 )
...
automerge
2019-06-03 18:27:06 -07:00
167e15a5ae
Update replicator sampling and proof generation ( #4522 )
...
* Update replicator sampling and proof generation
* Clippy
2019-06-03 17:27:28 -07:00
dea663d509
Storage arranged by fork ( #4518 )
2019-06-03 15:34:32 -07:00
9754e551cb
Fund vote accounts with 1 lamport only ( #4512 )
2019-06-03 14:48:01 -07:00
40a4ac15f1
Remove per transaction fee ( #4521 )
...
automerge
2019-06-03 13:00:08 -07:00
c56052ff16
remove from_account from stake_instruction ( #4502 )
2019-06-03 09:04:51 -07:00
482ef51502
register_tick() on the correct bank ( #4506 )
...
* skip syscall_id in hash and delta
* add more tests, skip syscalls
2019-06-03 09:04:26 -07:00
e4ca3900ae
Reduce default validators from 5 to 2
2019-06-02 22:58:59 -07:00
3574469052
Add random distribution for avalanche peers ( #4493 )
...
* Add random distribution for avalanche peers
* fix clippy warnings
* bug fixes
* nits
2019-06-01 07:55:43 -07:00
e15246746d
Enable non-zero fees for all testnets ( #4513 )
...
automerge
2019-05-31 22:33:55 -07:00
ec5cca41bc
Separate bootstrap leader's stake lamports from its identity lamports ( #4510 )
...
* Revert "Prevent run.sh from running beyond the first epoch under normal use (#4498 )"
This reverts commit d343c409e6
.
* Separate bootstrap leader's stake lamports from its identity lamports
2019-05-31 19:58:52 -07:00
bc1368ba3e
Make run.sh compatible with multinode-demo/validator.sh ( #4507 )
...
automerge
2019-05-31 16:51:09 -07:00
c0a161afe8
Enable fees in ci/localnet-sanity.sh ( #4508 )
...
automerge
2019-05-31 16:50:39 -07:00
d343c409e6
Prevent run.sh from running beyond the first epoch under normal use ( #4498 )
...
The local cluster that run.sh starts will typically only have a single
node, the bootstrap leader. With epoch warmup enabled, run.sh will fail
after ~90 seconds once the warmup period has been exceeded due to lack
of votes from other validators.
As a workaround, disable epoch warmup and set slots-per-epoch to 1
million to keep run.sh alive for more than a fortnight.
2019-05-31 15:42:32 -07:00
64e8a21d73
Add tick height syscall ( #4497 )
...
* Remove tick_height from entrypoint signature
* Impl tick_height syscall and use in storage program
* Properly remove tick height from bpf handling
2019-05-31 16:29:21 -06:00
ce04d2bfc2
Add replicator support to net/ ( #4494 )
2019-05-31 15:27:31 -07:00
1c1d83bd56
skip syscall_id in hash and delta ( #4500 )
...
* skip syscall_id in hash and delta
* add more tests, skip syscalls
2019-05-31 12:26:45 -07:00
028e111fbc
remove payer from vote instructions ( #4475 )
2019-05-31 11:45:17 -07:00
9670788bf5
Bump dirs from 1.0.5 to 2.0.1 ( #4490 )
...
Bumps [dirs](https://github.com/soc/dirs-rs ) from 1.0.5 to 2.0.1.
- [Release notes](https://github.com/soc/dirs-rs/releases )
- [Commits](https://github.com/soc/dirs-rs/commits )
2019-05-31 08:57:35 -07:00
d2f9625878
minor update
2019-05-31 07:36:59 -07:00
182096dc1a
Create bank snapshots ( #4244 )
...
* Revert "Revert "Create bank snapshots (#3671 )" (#4243 )"
This reverts commit 81fa69d347
.
* keep saved and unsaved copies of status cache
* fix format check
* bench for status cache serialize
* misc cleanup
* remove appendvec storage on purge
* fix accounts restore
* cleanup
* Pass snapshot path as args
* Fix clippy
2019-05-30 21:31:35 -07:00
2d284ba6db
Fix clear-config.sh
2019-05-30 15:31:41 -07:00
1de805e7cd
Add fees syscall to expose cluster fees into programs ( #4472 )
2019-05-30 15:18:48 -07:00
d642125f68
publish-crate fixups
2019-05-30 15:15:58 -07:00
b8aff218e2
Shutdown all services before bailing replicator init ( #4487 )
...
automerge
2019-05-30 14:36:47 -07:00
045d4d5294
Unignore test test_repairman_catchup ( #4484 )
2019-05-30 13:21:12 -07:00
d67dd8ce1f
Fix stable metrics dashboard for current channel use ( #4483 )
2019-05-30 13:16:26 -06:00
4d6679906b
Clean up crates.io publishing ( #4478 )
...
* Clean up crates.io publishing
* Cargo.lock
2019-05-30 11:53:41 -07:00
4537f54532
Break noop_program -> runtime dependency ( #4481 )
2019-05-30 11:20:49 -07:00
39b40dfff8
Remove runtime dependency on storage ( #4480 )
2019-05-30 10:54:28 -07:00
c82f4a1b6d
Unignore test_repairman_catchup
2019-05-29 21:59:41 -07:00
7a021dff05
Beautify Cargo.tomls with |cargo tomlfmt| ( #4477 )
2019-05-29 18:30:49 -07:00
348c2263ba
Remove genesis blockhash ( #4471 )
...
* Remove genesis blockhash
* Remove genesis blockhash from tests
* Fix golden
2019-05-29 17:29:02 -07:00
b5324063f1
Use thread pools for rayon par_iter ( #4473 )
...
* Use thread pools for rayon par_iter
* address review comments
* cleanup
2019-05-29 17:16:36 -07:00
6ed071c4dd
Fix storage stage operating on empty slots ( #4474 )
...
* Fix storage stage operating on empty slots
* Reduce fn argument count
* Fix tests
2019-05-29 15:01:20 -07:00
4404634b14
Coalesce packets better ( #4456 )
2019-05-29 12:17:50 -07:00
6a1de33138
tighten up packets_to_blobs ( #4464 )
...
* tighten up packets_to_blobs
* missed a test
2019-05-29 10:08:35 -07:00
c05c3e69ca
add tests and groom naming ( #4467 )
2019-05-29 10:08:03 -07:00
534244b322
Fix set_roots to use cached bank parents instead of searching blocktree ( #4466 )
2019-05-29 09:43:22 -07:00
335dfdc4d5
Fix Gossip skipping push for some values ( #4463 )
...
* Make gossip skip over values from Pruned nodes
* Add test and init blooms to contain the origin
2019-05-28 18:39:40 -07:00
a7ef409c2b
Drop influxcloud ( #4460 )
...
automerge
2019-05-28 16:26:59 -07:00
14594217db
undelete votestate etc ( #4457 )
2019-05-28 16:01:27 -07:00
c8a03c7b3d
Save RNG for generating random storage sampling offsets ( #4450 )
...
* Save RNG for generating random storage sampling offsets
* fix clippy
* fix stable-perf
* fix chacha
2019-05-28 14:14:46 -07:00
9fcd162412
update book with passive staking ( #4451 )
2019-05-28 14:02:04 -07:00
441fed7a5b
check freeze before updating slot_hashes ( #4448 )
...
* check freeze before updating slot_hashes
* fixup
2019-05-28 12:25:55 -07:00
ff31ffbd54
add more information to dropped vote warning ( #4449 )
...
* add more information to dropped vote warning
* fixup
2019-05-28 12:25:34 -07:00
0e26ee854b
Add test indicating need for credit-only account handling ( #4441 )
...
* Add test indicating need for credit-only account handling
* Add commented correct future test lines
2019-05-28 11:57:22 -04:00
5340800cea
Add some optimizing to ThinClient ( #4112 )
...
Can create a multi-socketed ThinClient which will use request time
from get_recent_blockhash to tune for the best node to talk to.
2019-05-27 20:54:44 -07:00
13c2e50b38
Bump sys-info from 0.5.6 to 0.5.7 ( #4445 )
...
automerge
2019-05-27 20:31:12 -07:00
dd39b2b056
Revert --retry-on-http-error usage, Travis CI's wget doesn't recognize it
2019-05-27 19:35:04 -07:00
65f89d6729
Bump logging level of validator procsesing errors ( #4442 )
2019-05-27 16:19:38 -07:00
1eceb4831d
Use nohup and sleep a little to improve stability when launching a node
2019-05-27 13:57:40 -07:00
50303c9ede
data_dir -> data-dir
2019-05-27 07:31:50 -07:00
ed6a438c51
v0.16.0
2019-05-26 19:42:15 -07:00
2adb98a4a0
Ignore flaky test_repairman_catchup ( #4439 )
...
automerge
2019-05-26 12:24:20 -07:00
471465a5f4
net/: Add solana-install test to sanity ( #4438 )
...
* Add instance creation date to motd
* Setup localtime
* Add solana-install test
2019-05-26 11:17:07 -07:00
942785b626
sdk/bpf/scripts/install.sh: Retry downloads on transient 403 S3 failures seen in CI ( #4436 )
...
* Avoid caching perf-libs in CI
* Retry downloads on transient 403 S3 failures seen in CI
2019-05-25 14:41:09 -07:00
aa3c00231a
Fix should_update check to update EpochSlots in gossip ( #4435 )
...
automerge
2019-05-25 06:44:40 -07:00
d772a27936
Plumb ClusterInfoRepairListener ( #4428 )
...
automerge
2019-05-24 19:20:09 -07:00
0302f13b97
add datapoint for corrupt vote_account ( #4424 )
2019-05-24 18:34:56 -07:00
16b25d0874
Clone with https for Travis/repo with submodules ( #4431 )
2019-05-24 21:18:31 -04:00
c2dcbee6af
cd within the subshell
2019-05-24 18:10:25 -07:00
1f71d05299
remove copying of forwarded packets ( #4425 )
...
automerge
2019-05-24 17:35:09 -07:00
bfa1c025fd
Add rust bpf allocator ( #4426 )
2019-05-24 16:21:42 -07:00
8611b40074
Add argument to net/net to specify number of nodes ( #4429 )
...
Allows for testing different node counts without recreating the network.
2019-05-24 16:20:14 -07:00
916844d399
Fix replicator account setup in fullnode.sh ( #4430 )
2019-05-24 15:40:49 -07:00
4c9b7c9d2b
Submit all incoming proofs as valid ( #4377 )
2019-05-24 14:49:10 -07:00
9843c3a5cb
Restrict transaction fee payers to system accounts ( #4198 )
...
automerge
2019-05-24 13:06:55 -07:00
f56955a17c
Use absolute path to env.sh
2019-05-24 12:27:12 -07:00
9784bbf154
Pay for storage transactions with a system account ( #4423 )
...
automerge
2019-05-24 11:04:05 -07:00
45642c4da1
Add path to env.sh
2019-05-24 09:56:07 -07:00
8eac199e8b
Include perf-libs in release tarball ( #4422 )
2019-05-24 09:28:52 -07:00
2e251ccc5c
De-fullnode variable names ( #4420 )
2019-05-24 04:31:39 -07:00
cf4bb70d80
Rename id to pubkey in cluster_info_repair_listener ( #4421 )
2019-05-24 04:31:32 -07:00
57f8a15b96
Fix issues in ClusterInfoRepairListener ( #4418 )
...
* Sort repairmen before shuffling so order is the same across all validators
* Reduce repair redundancy to 1 for now
* Fix local cache of roots so that 1) Timestamps are only updated to acknowledge a repair was sent 2) Roots are updated even when timestamps aren't updated to keep in sync with network
* Refactor code, add test
2019-05-24 00:47:51 -07:00
cfe5afd34c
_id => _pubkey variable renaming ( #4419 )
...
* wallet: rename *_account_id to *_account_pubkey
* s/from_id/from_pubkey/g
* s/node_id/node_pubkey/g
* s/stake_id/stake_pubkey/g
* s/voter_id/voter_pubkey/g
* s/vote_id/vote_pubkey/g
* s/delegate_id/delegate_pubkey/g
* s/account_id/account_pubkey/g
* s/to_id/to_pubkey/g
* s/my_id/my_pubkey/g
* cargo fmt
* s/staker_id/staker_pubkey/g
* s/mining_pool_id/mining_pool_pubkey/g
* s/leader_id/leader_pubkey/g
* cargo fmt
* s/funding_id/funding_pubkey/g
2019-05-23 23:20:04 -07:00
94beb4b8c2
More fullnode -> validator renaming ( #4414 )
...
* s/fullnode_config/validator_config/g
* s/FullnodeConfig/ValidatorConfig/g
* mv core/lib/fullnode.rs core/lib/validator.rs
* s/Fullnode/Validator/g
* Add replicator-x.sh
* Rename fullnode.md to validator.md
* cargo fmt
2019-05-23 22:05:16 -07:00
50207a30ef
Rename solana-fullnode to solana-validator redux ( #4417 )
2019-05-23 21:28:18 -07:00
35e8f966e3
add freeze_lock() and fix par_process_entries() failure to detect self conflict ( #4415 )
...
* add freeze_lock and fix par_process_entries failure to detect self conflict
* fixup
* fixup
2019-05-23 17:35:15 -07:00
943cd0a24a
Add credit-only info to AccountMetadata ( #4405 )
...
* Add credit-only flag to AccountMeta, default to false
* Sort keys by is_credit_only within signed/unsigned groupings
* Process and de-dupe program keys along with other account keys
* Add message helper functions
* Fix test
* Improve comment
* s/is_credit_only/is_debitable
* Add InstructionKeys helper struct, and simplify program_position method
2019-05-23 18:19:53 -04:00
0b892b2579
Reduce 100ms to 1ms. ( #4412 )
...
automerge
2019-05-23 15:15:26 -07:00
fb2eac20bb
Rename solana-fullnode to solana-validator ( #4411 )
2019-05-23 15:06:01 -07:00
b37d2fde3d
Add storage mining pool ( #4364 )
...
* Add storage mining pool
* Set gossip port
* Add create-storage-mining-pool-account wallet command
* Add claim-storage-reward wallet command
* Create storage account upfront
* Add storage program to genesis
* Use STORAGE_ACCOUNT_SPACE
* Fix tests
* Add wallet commands to create validator/replicator storage accounts
* Add create_validator_storage_account()
* Storage stage no longer implicitly creates a storage account
2019-05-23 14:50:23 -07:00
6b35e16676
Turn on real PoH in perf testnets ( #4407 )
...
* Turn on real PoH in perf testnets
* enable real PoH for all testnets except "testnet"
2019-05-23 13:22:52 -07:00
6a9e0bc593
Change EpochSlots to use BtreeSet so that serialization/deserialization returns the same order ( #4404 )
...
automerge
2019-05-23 03:50:41 -07:00
591fd72e0b
Implement listener for serving repairs through Repairman protocol ( #4306 )
...
* Make listener for serving repairs through Repairman protocol
2019-05-23 03:10:16 -07:00
2ed77b040a
create_genesis_block() now returns a struct ( #4403 )
2019-05-22 20:39:00 -07:00
7ada8510c4
add slot_hashes to bank, remove phony slot_hashes_from_vote_instruction ( #4401 )
2019-05-22 19:07:56 -07:00
b8f6c17dee
Don't filter transactions if we are buffering it locally ( #4395 )
...
automerge
2019-05-22 17:54:28 -07:00
2f976ae460
Dashboard update for real PoH performance ( #4397 )
2019-05-22 16:18:57 -07:00
36019cb1e3
Tweaks to real PoH based on perf testing ( #4396 )
...
* Some counters for real poh perf analysis
* more metrics
* Comment on CPU affinity change, and reduce hash batch size based on TPS perf
* review comments
2019-05-22 15:54:24 -07:00
99d2428041
Transaction format changes toward Credit-Only accounts ( #4386 )
...
* Add num_readonly_accounts slice
* Impl programs in account_keys
* Emulate current account-loading functionality using program-account_keys (breaks exchange_program_api tests)
* Fix test
* Add temporary exchange faucet id
* Update chacha golden
* Split num_credit_only_accounts into separate fields
* Improve readability
* Move message field constants into Message
* Add MessageHeader struct and fixup comments
2019-05-22 18:23:16 -04:00
c121498b5b
Check that Rust project exists ( #4393 )
2019-05-22 15:09:59 -07:00
eef2bdf690
Add CPU affinity for PoH service thread ( #4394 )
...
automerge
2019-05-22 14:21:43 -07:00
190656967d
Bump nix from 0.13.0 to 0.14.0 ( #4382 )
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/nix-rust/nix/releases )
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nix-rust/nix/compare/v0.13.0...v0.14.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-22 14:07:35 -07:00
90e73515ed
Remove ls which is innacurate since we never clean up the logs ( #4392 )
...
automerge
2019-05-22 13:11:20 -07:00
1d7a758c97
Bump perf libs version to fix out buffer sizing ( #4385 )
2019-05-22 13:00:03 -07:00
e5b7aead12
Cargo watch ignores local metrics ( #4384 )
2019-05-22 00:08:18 -07:00
578c2ad3ea
add bank hash to votes ( #4381 )
2019-05-21 21:45:38 -07:00
de6838da78
change unwrap to expect where WSL sometimes aborts ( #4375 )
...
* change unwrap to expect where WSL sometimes aborts
* clippy
2019-05-21 21:34:51 -07:00
604071c5d8
Bump num-traits from 0.2.7 to 0.2.8 ( #4379 )
...
Bumps [num-traits](https://github.com/rust-num/num-traits ) from 0.2.7 to 0.2.8.
- [Release notes](https://github.com/rust-num/num-traits/releases )
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-traits/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-21 21:27:00 -07:00
41a377013f
fix spelling ( #4378 )
...
automerge
2019-05-21 17:13:21 -07:00
52d453d06f
Reduce broadcast prints ( #4368 )
2019-05-21 17:02:19 -07:00
58295b825d
introduce syscalls ( #4373 )
2019-05-21 15:19:41 -07:00
f6c7812fcc
Rename Broker to Swapper ( #4371 )
2019-05-21 14:21:41 -07:00
2f7561e4ee
Split SDK's BPF Rust-utils ( #4369 )
2019-05-21 13:39:27 -07:00
1cbd2372fc
Revert 4271 workaround ( #4367 )
...
* Revert "#4271 not reproducable, remove workaround (#4363 )"
This reverts commit ef0580bd3d
.
* Remove old comment
2019-05-21 11:53:53 -07:00
28f948aa7f
Multi rust projects ( #4362 )
2019-05-21 11:22:33 -07:00
c9ba9e4eb7
Add storage space constant ( #4366 )
...
automerge
2019-05-21 11:07:13 -07:00
f877fb8c8f
Don't print leader update message unless leader actually updates ( #4365 )
2019-05-21 11:06:56 -07:00
772ba41ede
Cargo.lock
2019-05-21 08:08:07 -07:00
6374e69a69
Add mining pool wallet commands ( #4360 )
...
automerge
2019-05-21 07:32:38 -07:00
ef0580bd3d
#4271 not reproducable, remove workaround ( #4363 )
2019-05-20 23:45:09 -07:00
1a77486f8e
Make RootedSlotsIterator for traversing slots on the root fork ( #4361 )
2019-05-20 23:09:00 -07:00
ead15d294e
add get_epoch_vote_accounts rpc ( #4317 )
...
* add get_epoch_vote_accounts rpc
* fixups
* documentation and type updates
2019-05-20 22:21:13 -07:00
1acfcf3acf
Fix storage-keypair
2019-05-20 19:54:37 -07:00
d15e248cdb
Add bootstrap storage account to genesis ( #4359 )
...
* Add bootstrap storage account to genesis
* Add storage account genesis command to run.sh
* Update airdrop for all validators
* Remove unhelpful Short for arg
* Set the correct program owner
2019-05-20 19:46:15 -07:00
f1e5edee14
Modify Roots Column To Support Multiple Roots ( #4321 )
...
* Fix 1) Roots column family to handle storing multiple slots, 2) Store all slots on the rooted path in the roots column family
2019-05-20 19:04:18 -07:00
7153abd483
Revert "Performance tweaks ( #4340 )" ( #4350 )
...
* Revert "Performance tweaks (#4340 )"
This reverts commit 55cee5742f
.
* Revert Rc change
2019-05-20 17:48:42 -07:00
90fb5d074d
Bump num-traits from 0.2.6 to 0.2.7 ( #4355 )
...
Bumps [num-traits](https://github.com/rust-num/num-traits ) from 0.2.6 to 0.2.7.
- [Release notes](https://github.com/rust-num/num-traits/releases )
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.6...num-traits-0.2.7 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-20 16:35:14 -06:00
af82b0dce9
Fix sending root slots instead of current slot ( #4354 )
...
automerge
2019-05-20 15:01:55 -07:00
d4da2fbacd
fix bench warnings ( #4356 )
2019-05-20 14:32:23 -07:00
77efe95730
Order "install" correctly
2019-05-20 13:54:15 -07:00
86e03a6d1b
support issuing vote instructions from system account ( #4338 )
...
* issue vote instructions from system account
* fixup
* bring back KeypairUtil
2019-05-20 13:32:32 -07:00
114e2989fa
Improve PoH unit test asserts ( #4351 )
...
automerge
2019-05-20 13:02:44 -07:00
7024c73e9b
Revert banking threads increase which seems to be slower in testing. ( #4349 )
2019-05-20 11:42:37 -07:00
6d418aa3f1
Use rust_stable
2019-05-20 10:48:48 -07:00
f079a78c5e
Remove fee arg from system_transaction::* ( #4346 )
...
automerge
2019-05-20 10:03:19 -07:00
6365c4c061
Use cleanup ( #4347 )
2019-05-20 09:58:27 -07:00
55cee5742f
Performance tweaks ( #4340 )
...
* Use Rc to prevent clone of Packets
* Fix min => max in banking_stage threads.
Coalesce packet buffers better since a larger batch will
be faster through banking and sigverify.
Deconstruct batches into banking_stage from sigverify since
sigverify likes to accumulate batches but then a single banking_stage
thread will be stuck with a large batch. Maximize parallelism by
creating more chunks of work for banking_stage.
2019-05-20 09:15:00 -07:00
034eda4546
Fix a couple replicator nits ( #4345 )
...
automerge
2019-05-20 08:55:45 -07:00
44ff25d044
Update readme
...
* rustfmt no longer in preview
* since virtual manifest, cargo commands no longer require `--all`
2019-05-19 19:41:15 -06:00
a7e160e5c4
Add datapoint metrics to dashboard ( #4343 )
...
automerge
2019-05-19 15:07:03 -07:00
6283cc916d
Add SOLANA_METRICS_MAX_POINTS_PER_SECOND env var ( #4342 )
2019-05-19 13:56:52 -07:00
4b6aca6120
Bump tempfile from 3.0.7 to 3.0.8 ( #4341 )
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.0.7 to 3.0.8.
- [Release notes](https://github.com/Stebalien/tempfile/releases )
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/NEWS )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.0.7...v3.0.8 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-18 19:56:51 -07:00
20b2be6e0b
Enable real PoH on beta testnet as well
2019-05-18 19:45:00 -07:00
cbebc7a80c
Expand shortArgs correctly
2019-05-18 19:00:48 -07:00
06eb2364f2
Handle missed slots in storage stage ( #4337 )
...
* Handle missed slots in storage stage
* Fix test compile
* Make test use the new missed slot support
2019-05-18 15:24:50 -07:00
167890ca63
Set rust_version
2019-05-18 14:48:53 -07:00
392a39dd54
Poh subsystem cleanup, genesis plumbing, enable real PoH on edge testnet ( #4292 )
...
* Remove unused PohServiceConfig::Step
* Clarify variable name
* Poh::hash() now takes an iteration counter
* man -> max
* Inline functions with single call site
* Move PohServiceConfig into GenesisBlock
* Add plumbing to enable real PoH on testnets
* Batch hashes to improve PoH hash rate
* Ensure a constant hashes_per_tick
* Remove PohEntry mixin field
* Poh/PohEntry no longer maintains tick_height
* Ensure a constant hashes_per_tick
* ci/localnet-sanity.sh: Use real PoH
* Rework Poh/PohService to keep PohRecorder unlocked as much as possible while hashing
2019-05-18 14:01:36 -07:00
7e1a7862db
test_process_store_ok() now pays with a system account ( #4339 )
...
automerge
2019-05-17 20:17:50 -07:00
458ae3fdac
Switch to instances with AVX-512 if possible for better interop with dev machines ( #4328 )
...
automerge
2019-05-17 20:06:07 -07:00
431cc82032
add Transaction::partial_sign() ( #4333 )
...
* add partial sign
* nits
2019-05-17 18:55:57 -07:00
18c6729d6c
Bump tar from 0.4.25 to 0.4.26 ( #4330 )
...
Bumps [tar](https://github.com/alexcrichton/tar-rs ) from 0.4.25 to 0.4.26.
- [Release notes](https://github.com/alexcrichton/tar-rs/releases )
- [Commits](https://github.com/alexcrichton/tar-rs/compare/0.4.25...0.4.26 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-17 17:46:12 -07:00
9476fe5ce3
Use log levels for datapoint metrics ( #4335 )
...
* Use log levels for datapoint metrics
* address review comments
* fix cyclomatic complexity
2019-05-17 17:34:05 -07:00
788290ad82
Rework Storage Program to accept multiple proofs per segment ( #4319 )
...
automerge
2019-05-17 14:52:54 -07:00
6b5bcfaa58
Bump libc from 0.2.54 to 0.2.55 ( #4324 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.54 to 0.2.55.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.54...0.2.55 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-17 13:24:12 -07:00
4ed0cded9c
Rm metrics docker even if not running ( #4329 )
2019-05-17 13:13:38 -07:00
035a364122
Add expect to get better errors on crash ( #4327 )
2019-05-17 12:49:41 -07:00
b114bc3674
Add benchmark for sigverify stage ( #4320 )
2019-05-17 11:09:42 -07:00
bc74ee7117
Common Rust-BPF utilities and types ( #4325 )
2019-05-17 11:04:29 -07:00
b2ce5dc9f5
Adjust log level for counter metrics ( #4323 )
2019-05-17 07:00:06 -07:00
e920191de0
Rate limit metrics per log level ( #4313 )
...
* Rate limit metrics per log level
* fix tests
2019-05-16 22:27:05 -07:00
39e85a3e53
kill some bs58 ( #4316 )
...
* kill some bs58
* fixup
2019-05-16 21:43:18 -07:00
41156da4ca
Sync run.sh with fd3f2cb
( #4322 )
...
automerge
2019-05-16 21:32:23 -07:00
9271ba0039
Cleanup Rust BPF program building ( #4318 )
2019-05-16 17:35:42 -07:00
b3e45fd6b7
Add erroring tx to unexpected validator error logging ( #4314 )
...
* Add tx logging to error
* Add tx logging to unexpected validator errors
2019-05-16 14:59:22 -07:00
7bfb60f82e
add impl FromStr for Signature ( #4315 )
...
automerge
2019-05-16 14:54:31 -07:00
359c50f1b3
cp -a includes -r ( #4312 )
2019-05-16 12:24:04 -07:00
fff1631a8b
Return a better error when a program account isn't found ( #4310 )
2019-05-16 11:32:27 -06:00
7d42ae30d9
Update Rust-BPF to 2018 Edition ( #4307 )
2019-05-16 09:12:33 -07:00
87414de3e2
switch over to passive stakes ( #4295 )
...
* add failing test
* switch over to passive stakes
* test multiple stakers
2019-05-16 08:23:31 -07:00
a0ffbf50a5
Correctly remove replicator from data plane after its done repairing ( #4301 )
...
* Correctly remove replicator from data plane after its done repairing
* Update discover to report nodes and replicators separately
* Fix print and condition to be spy
2019-05-16 07:14:58 -07:00
d40b66ff7b
Bump solana_rbpf from 0.1.10 to 0.1.11 ( #4304 )
...
Bumps [solana_rbpf](https://github.com/solana-labs/rbpf ) from 0.1.10 to 0.1.11.
- [Release notes](https://github.com/solana-labs/rbpf/releases )
- [Commits](https://github.com/solana-labs/rbpf/commits/v0.1.11 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-16 01:07:10 -07:00
abd7f6b090
Change slot_meta_iterator() to return an iterator not a cursor ( #4303 )
...
automerge
2019-05-15 18:28:23 -07:00
d8735df1de
Update replicator to use cluster_info instead of cached client ( #4302 )
2019-05-15 18:14:04 -07:00
481853e1b1
Bump reqwest from 0.9.16 to 0.9.17 ( #4296 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.16 to 0.9.17.
- [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.9.16...v0.9.17 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-15 16:02:17 -07:00
778bcbce50
Reduce log level for frequent log message and frequency for metrics datapoint ( #4300 )
...
automerge
2019-05-15 16:01:17 -07:00
fd3f2cb910
Add Storage accounts for all nodes ( #4298 )
...
* Setup storage keypairs for all nodes
* Clean up naming
* clippy
* Update arg value_names
2019-05-15 15:19:29 -07:00
915956b94b
Remove disable leader rotation option ( #4299 )
...
automerge
2019-05-15 15:16:45 -07:00
4576250342
Fix bug in storage processor and remove duplicate Constant ( #4294 )
...
* Fix bug in storage processor and remove duplicate Constant
* Add test
* Bump replicator timeout
2019-05-15 13:28:56 -07:00
2bef1b0433
Use rust-bpf-sysroot release branches ( #4293 )
2019-05-15 12:45:48 -07:00
628128b376
add passive staking to local_cluster ( #4285 )
...
* add passive staking to local_cluster
* add stake_program to genesis
* use equal stakes in local_cluster tests
2019-05-15 12:15:31 -07:00
916017ca2c
Fix repair for a range of slots ( #4286 )
...
* Fix repair for a range of slots
* Delete RepairInfo
2019-05-15 11:37:20 -07:00
3204a00e73
Update rust-bpf-sysroot to latest ( #4291 )
2019-05-15 09:53:44 -07:00
1d327a5167
Bump bincode from 1.1.3 to 1.1.4 ( #4290 )
...
Bumps [bincode](https://github.com/TyOverby/bincode ) from 1.1.3 to 1.1.4.
- [Release notes](https://github.com/TyOverby/bincode/releases )
- [Commits](https://github.com/TyOverby/bincode/compare/v1.1.3...v1.1.4 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-15 09:47:55 -06:00
6e4f9cedf2
Fix Plum Tree link
2019-05-15 08:15:22 -07:00
a79fbbafc9
SlotMeta is incorrectly updated on insertion of erasure blobs ( #4289 )
...
* Fix put_coding_blob_bytes to properly update slotmetas and chaining
2019-05-15 00:28:31 -07:00
1d54d29076
Fix reading ledger for chacha encrypt ( #4288 )
2019-05-14 16:59:17 -07:00
10b9a4806b
Fix incorrect genesis blockhashes on restart ( #4287 )
2019-05-14 16:32:44 -07:00
0c1191c3ee
rework staking_utils ( #4283 )
2019-05-14 16:15:51 -07:00
18b386cd10
remove unused make_active_set_entries ( #4284 )
2019-05-14 15:08:49 -07:00
714b8c7fc8
Bump tokio from 0.1.18 to 0.1.20 ( #4280 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 0.1.18 to 0.1.20.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-0.1.18...tokio-0.1.20 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-14 15:30:56 -06:00
216e9a61a0
expose stake directly from bank ( #4281 )
2019-05-14 13:35:14 -07:00
0f498e6265
remove unused filter_zero_balance ( #4279 )
2019-05-14 10:44:29 -07:00
e8ad822111
get program names from programs ( #4273 )
...
* get program names from programs
* fixup
2019-05-14 10:44:16 -07:00
65a82ebf50
Fix broken tip ( #4278 )
...
automerge
2019-05-14 02:35:32 -07:00
727802684c
Use 20 bytes signature slice for cache purposes ( #4260 )
2019-05-13 22:53:10 -07:00
e20a8329d3
Add API to iterate over slot's blobs ( #4276 )
2019-05-13 22:04:54 -07:00
88c2d0fad4
Add genesis blockhash to replicators and blob filter for window ( #4275 )
...
* Add genesis blockhash to replicators and blob filter for window
* Fixes to mining submission and ledger download
* Add todo over sleep
* Update log
2019-05-13 21:19:51 -07:00
3bd921264a
Move EpochSchedule into own module ( #4272 )
2019-05-13 16:24:32 -07:00
7501ed65e5
Initialize and Update EpochSlots in RepairService ( #4255 )
...
* Initialize EpochSlots in RepairService
* Fix flaky test
2019-05-13 15:37:50 -07:00
2eaa64c4e8
valhashators -> validators
2019-05-13 15:29:23 -07:00
c9b86018c6
Filter out all unprocessed transactions before forwarding them ( #4266 )
...
* Filter out all unprocessed transactions before forwarding them
* fix clippy
2019-05-13 14:40:05 -07:00
a4fb01b42b
Add +x
2019-05-13 14:30:44 -07:00
0d2574f8f0
get DLL names from programs that made the DLL ( #4269 )
...
* get program names from programs
* fixup
2019-05-13 14:17:44 -07:00
796000e96f
Improve erasure metrics ( #4268 )
...
* Improve erasure metrics
* Simplify metrics submission
2019-05-13 16:04:43 -05:00
e2f00dc205
Cargo.toml implied ( #4270 )
...
automerge
2019-05-13 13:51:42 -07:00
5e91f8f59d
Update reported tx count to exclude errors ( #4201 )
2019-05-13 13:23:52 -07:00
e2830f5b0e
Add rate limit to metrics datapoint submission ( #4237 )
...
Cleanup
Raise limit on submission threshold
Pick nits and add metrics point
fmt
Fixup compiler warning
Cleanup if-else
Append new point to vec rather than submit
2019-05-13 14:17:25 -06:00
a2e3a92b01
Extend GetBlockHash RPC API to include the fee scehdule for using the returned blockhash ( #4222 )
2019-05-13 12:49:37 -07:00
23c696706b
add stake_accounts to banks' caches ( #4267 )
2019-05-13 12:33:23 -07:00
1393d26f63
Remove obsolete internal multinode-demo/ logging ( #4265 )
2019-05-13 10:51:18 -07:00
1b68da7572
Use solana-ed25519-dalek v0.2.0 ( #4264 )
...
automerge
2019-05-13 09:51:59 -07:00
8542006259
Config instructions now only require one key ( #4258 )
2019-05-12 22:47:12 -07:00
426d06b89b
Improve target/ cache logging
2019-05-12 22:16:23 -07:00
06378d6db6
Refine killNode logging
2019-05-12 21:21:31 -07:00
dccfe31e8c
Increase target cache size for coverage build
2019-05-12 21:21:31 -07:00
1dce5976cf
Disable node restart in localnet-sanity.sh
2019-05-12 21:21:31 -07:00
340d01665c
Avoid generating default keypair
2019-05-12 21:21:31 -07:00
50f79e495e
net/ improvements ( #4257 )
...
automerge
2019-05-11 22:54:50 -07:00
dd12db2f06
Correctly handle more zones than additional nodes
2019-05-11 14:47:27 -07:00
1afccb7351
Add more regions to the testnet
2019-05-11 14:12:13 -07:00
bfc65e829e
Use zone[0] for any left over nodes
2019-05-11 14:07:36 -07:00
eb4515525d
Bump ws from 0.8.0 to 0.8.1 ( #4251 )
...
Bumps [ws](https://github.com/housleyjk/ws-rs ) from 0.8.0 to 0.8.1.
- [Release notes](https://github.com/housleyjk/ws-rs/releases )
- [Changelog](https://github.com/housleyjk/ws-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/housleyjk/ws-rs/compare/v0.8.0...v0.8.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-10 21:06:33 -07:00
55f5f6a033
Make links clickable
2019-05-10 19:49:45 -07:00
7ae421eaf6
Update release version in book ( #4254 )
2019-05-10 18:43:08 -06:00
e7da2c0931
Add validator registration link ( #4229 )
2019-05-10 15:14:03 -07:00
133be2df51
Check for transaction forwarding delay to detect an expired transaction before forwarding it ( #4249 )
...
Also refactored code for forwarding packets, and added test for it
2019-05-10 14:28:38 -07:00
06a93dcb43
Move to solana-ed25519-dalek ( #4248 )
2019-05-10 15:26:46 -06:00
ad7f04a245
Add genesis_blockhash to erasure blobs so they don't get filtered out by window_service ( #4247 )
2019-05-10 14:06:31 -07:00
0da6e1af14
Repair Design Proposal ( #3402 )
...
* Update information about existing repair protocol + new repairman proposal
2019-05-10 13:50:23 -07:00
576524f13b
Updates to storage proposal with more storage contract details ( #3373 )
2019-05-10 09:19:06 -07:00
f567877d1d
Cleanup metrics ( #4230 )
2019-05-10 08:33:58 -07:00
9881820444
RepairService saves db_iterator instead of reconstructing on every search ( #4242 )
2019-05-09 19:57:51 -07:00
ba8f49366d
passive staking 4 ( #4240 )
...
* support passive staking with wallet, use it
* fixups
* clippy
* cleanup app generation in wallet, finish fullnode.sh staking
* _id and _keypair => pubkey
use keygen, not wallet to get pubkey
* found 'em
2019-05-09 19:31:42 -07:00
81fa69d347
Revert "Create bank snapshots ( #3671 )" ( #4243 )
...
This reverts commit abf2b300da
.
2019-05-09 19:27:27 -07:00
abf2b300da
Create bank snapshots ( #3671 )
...
* Be able to create bank snapshots
* fix clippy
* load snapshot on start
* regenerate account index from the storage
* Remove rc feature dependency
* cleanup
* save snapshot for slot 0
2019-05-09 19:27:06 -07:00
a8254fd258
Clear stale ledger on fullnode startup if necessary ( #4238 )
2019-05-09 17:09:36 -07:00
b15848de3b
Bump tar from 0.4.24 to 0.4.25 ( #4239 )
...
Bumps [tar](https://github.com/alexcrichton/tar-rs ) from 0.4.24 to 0.4.25.
- [Release notes](https://github.com/alexcrichton/tar-rs/releases )
- [Commits](https://github.com/alexcrichton/tar-rs/compare/0.4.24...0.4.25 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-09 17:07:31 -07:00
ab3c988146
API for getting first and last slots in epoch ( #4241 )
...
automerge
2019-05-09 16:06:57 -07:00
575a0e318b
Add newly completed slots signal to Blocktree ( #4225 )
...
* Add channel to blocktree for communicating when slots are completed
* Refactor RepairService options into a RepairStrategy
2019-05-09 14:10:04 -07:00
a031b09190
Add replicator support to multinode demo ( #4221 )
...
automerge
2019-05-09 13:43:39 -07:00
df43e721e3
Exit 1 on ledger verification failure
2019-05-09 12:05:51 -07:00
5f72650c7f
add derive Debug to Keypair ( #4236 )
2019-05-09 11:41:11 -07:00
5d0d467287
fix banking_stage benches ( #4231 )
2019-05-09 11:20:26 -07:00
994515d0f2
add impl PartialEq for Keypair ( #4233 )
...
* add-impl-PartialEq-for-Keypair
* clippy
* do the TODO, improve wrapper comments
2019-05-09 11:03:14 -07:00
1e949caa7f
Move airdrop retries fully out of bash ( #4234 )
...
automerge
2019-05-09 09:48:27 -07:00
f2b727b534
Update mint keypair filename
2019-05-09 07:27:13 -07:00
f7680752e7
make gen_keypair_file take &str ( #4232 )
...
automerge
2019-05-08 23:00:48 -07:00
da4c37beec
multinode-demo/ grooming ( #4226 )
...
* Rename leader to entrypoint
* The fullnode identity keypair can now be provided
* Rename _id to _keypair
2019-05-08 19:59:22 -07:00
d486d2b8ce
Consolidate default arg parsing ( #4224 )
...
automerge
2019-05-08 19:12:43 -07:00
bba94c43b9
Add BankForks to RepairService ( #4223 )
...
automerge
2019-05-08 18:51:43 -07:00
9cdffc7d64
Don't push empty vecs into the unprocessed buffers ( #4214 )
2019-05-08 17:58:07 -07:00
5a86f2506d
Remove unnecessary retrying ( #4219 )
2019-05-08 16:20:37 -07:00
518227eac0
add-rpc_client.get_account ( #4218 )
2019-05-08 15:50:23 -07:00
b8fd51e97d
Add new gossip structure for supporting repairs ( #4205 )
...
* Add Epoch Slots to gossip
* Add new gossip structure to support Repair
* remove unnecessary clones
* Setup dummy fast repair in repair_service
* PR comments
2019-05-08 13:50:32 -07:00
965c1e0000
staking plumbing part 3, 3.5 ( #4216 )
2019-05-08 12:56:11 -07:00
a80176496d
add /target/ to .gitignore files for all crates ( #4217 )
...
* add /target/ to .gitignore files for all crates
* shellcheck
2019-05-08 12:15:05 -07:00
5719b8f251
Change remote node's ssh config to allow more login retries ( #4215 )
...
automerge
2019-05-08 11:20:06 -07:00
1a2b131ceb
Don't forward transactions that are expired or failed signature check ( #4199 )
2019-05-08 10:32:25 -07:00
349306ddf7
Bump proc-macro2 from 0.4.27 to 0.4.29 ( #4180 )
...
Bumps [proc-macro2](https://github.com/alexcrichton/proc-macro2 ) from 0.4.27 to 0.4.29.
- [Release notes](https://github.com/alexcrichton/proc-macro2/releases )
- [Commits](https://github.com/alexcrichton/proc-macro2/compare/0.4.27...0.4.29 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-08 09:03:30 -07:00
791ee411a5
Add root to bank forks ( #4206 )
2019-05-07 23:34:10 -07:00
f690c64375
Disable solana-upload-perf until performance can be debugged ( #4210 )
2019-05-07 23:02:09 -07:00
427963f554
Core depends on vote and budget program directly ( #4204 )
2019-05-07 22:41:47 -07:00
b0f2220ef6
Fix solana-upload-perf log folding. Upload bench output too ( #4208 )
2019-05-07 22:30:42 -07:00
908b48bf0e
Increase test-stable build timeout
2019-05-07 22:23:43 -07:00
b49f8c0984
reduce replicode, introduce passive staking support ( #4207 )
2019-05-07 22:22:43 -07:00
7609a007c6
Add FeeCalculator to the genesis block ( #4196 )
2019-05-07 20:28:41 -07:00
674a49f8d7
Bump serde_derive from 1.0.90 to 1.0.91 ( #4172 )
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.90 to 1.0.91.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-07 20:05:41 -07:00
d10bde656a
Pass payer key into get_keys() ( #4203 )
2019-05-07 18:48:31 -07:00
401764ddb1
add create_delegate_stake_account ( #4197 )
2019-05-07 17:08:49 -07:00
69eeb7cf08
Fix parent record locks usage in child banks ( #4159 )
...
* Introduce record locks on txs that will be recorded
* Add tests for LockedAccountsResults
* Fix broken bench
* Exit process_entries on detecting conflicting locks within same entry
2019-05-07 15:51:35 -07:00
55e3b7d380
Storage transactions are now paid for by a system account ( #4193 )
...
* Pay program loading fees from a system account
* Pay transaction fees from a system account
2019-05-07 15:01:10 -07:00
d9e18a71ec
Pay program loading fees from a system account ( #4190 )
2019-05-07 15:00:54 -07:00
2107e15bd3
Reduce Avalanche redundancy and implement traditional fanout ( #4174 )
...
* Reduce Avalanche redundancy and implement traditional fanout
* Revert tiny fanout
* Update diagrams and docs based on review comments
2019-05-07 13:24:58 -07:00
4f3b22d04e
Minor code restyling, no functional changes
2019-05-07 12:35:29 -07:00
2c78a93001
GenesisBlock::new(X) => create_genesis_block(X)
2019-05-07 12:34:17 -07:00
2621aeee82
Set default wallet rpc port correctly
2019-05-07 11:37:51 -07:00
8e400fc4bd
rework genesis (passive staking groundwork) ( #4187 )
...
* rework genesis
* fixup
2019-05-07 11:16:22 -07:00
29c2a63c8b
Retry transactions that failed due to account lock ( #4184 )
...
* added test
2019-05-07 10:23:02 -07:00
736ada4e21
Bump dtoa from 0.4.3 to 0.4.4 ( #4178 )
...
Bumps [dtoa](https://github.com/dtolnay/dtoa ) from 0.4.3 to 0.4.4.
- [Release notes](https://github.com/dtolnay/dtoa/releases )
- [Commits](https://github.com/dtolnay/dtoa/compare/0.4.3...0.4.4 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-07 07:31:57 -07:00
3df9b44d4c
Bump nom from 4.2.2 to 4.2.3 ( #4182 )
...
Bumps [nom](https://github.com/Geal/nom ) from 4.2.2 to 4.2.3.
- [Release notes](https://github.com/Geal/nom/releases )
- [Changelog](https://github.com/Geal/nom/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Geal/nom/compare/4.2.2...4.2.3 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-07 07:31:48 -07:00
7225b89142
Bump globset from 0.4.2 to 0.4.3 ( #4176 )
...
Bumps [globset](https://github.com/BurntSushi/ripgrep ) from 0.4.2 to 0.4.3.
- [Release notes](https://github.com/BurntSushi/ripgrep/releases )
- [Changelog](https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md )
- [Commits](https://github.com/BurntSushi/ripgrep/compare/globset-0.4.2...globset-0.4.3 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-07 07:15:34 -07:00
0cc0d3ab7a
Bump socket2 from 0.3.8 to 0.3.9 ( #4186 )
...
Bumps [socket2](https://github.com/alexcrichton/socket2-rs ) from 0.3.8 to 0.3.9.
- [Release notes](https://github.com/alexcrichton/socket2-rs/releases )
- [Commits](https://github.com/alexcrichton/socket2-rs/compare/0.3.8...0.3.9 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-07 07:15:04 -07:00
88d9618788
Bump futures from 0.1.25 to 0.1.26 ( #4179 )
...
Bumps [futures](https://github.com/rust-lang-nursery/futures-rs ) from 0.1.25 to 0.1.26.
- [Release notes](https://github.com/rust-lang-nursery/futures-rs/releases )
- [Changelog](https://github.com/rust-lang-nursery/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang-nursery/futures-rs/compare/0.1.25...0.1.26 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-07 07:14:48 -07:00
57038529e0
Bump hex-literal from 0.1.4 to 0.2.0 ( #4185 )
...
Bumps [hex-literal](https://github.com/RustCrypto/utils ) from 0.1.4 to 0.2.0.
- [Release notes](https://github.com/RustCrypto/utils/releases )
- [Commits](https://github.com/RustCrypto/utils/compare/hex-literal-v0.1.4...hex-literal-v0.2.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-07 07:14:16 -07:00
5c25eae631
Bump tokio-sync from 0.1.4 to 0.1.5 ( #4177 )
...
Bumps [tokio-sync](https://github.com/tokio-rs/tokio ) from 0.1.4 to 0.1.5.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-sync-0.1.4...tokio-sync-0.1.5 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-06 22:06:09 -07:00
b8b4d33f72
Bump h2 from 0.1.17 to 0.1.18 ( #4175 )
...
Bumps [h2](https://github.com/carllerche/h2 ) from 0.1.17 to 0.1.18.
- [Release notes](https://github.com/carllerche/h2/releases )
- [Changelog](https://github.com/hyperium/h2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/carllerche/h2/compare/v0.1.17...v0.1.18 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-06 21:42:22 -07:00
673a9417ef
Bump serde from 1.0.90 to 1.0.91 ( #4171 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.90 to 1.0.91.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.90...v1.0.91 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-06 21:41:30 -07:00
3fd9aada8b
Add missing modules to workspace ( #4183 )
2019-05-06 22:40:54 -06:00
453fdb9e28
Add support for local metric collection/viewing ( #4170 )
2019-05-06 16:44:06 -07:00
3f6a79b078
Add a validator node proposal ( #3035 )
...
automerge
2019-05-06 13:41:28 -07:00
e9f80e5542
Don't use default ticks per slot in calculating next slot leader ( #4169 )
2019-05-06 11:23:06 -07:00
694d28acf8
remove some boilerplate ( #4143 )
2019-05-06 10:11:18 -07:00
88fdba5aca
Temp: bump test-bench timeout
2019-05-06 10:00:00 -07:00
a19df7a36c
Add type annotations for external crates ( #4125 )
2019-05-06 10:11:50 -06:00
9b50583641
wallet: add --url, remove --host/--rpc-host/--rpc-port/-rpc-tls ( #4153 )
...
Also by default the wallet now talks to testnet.solana.com instead of
localhost
2019-05-06 07:38:26 -07:00
71f9b44687
Add Confirmations parameter to RPC Subscriptions ( #4154 )
...
* Add optional depth parameter to pubsub, and store in subscriptions
* Pass bank_forks into rpc_subscription; add method to check depth before notify and impl for account subscriptions
* Impl check-depth for signature subscriptions
* Impl check-depth for program subscriptions
* Plumb fork id through accounts
* Use fork id and root to prevent repeated account notifications; also s/Depth/Confirmations
* Write tests in terms of bank_forks
* Fixup accounts tests
* Add pubsub-confirmations tests
* Update pubsub documentation
2019-05-06 08:31:50 -06:00
0139e5db21
Correct blockstreamer node args
2019-05-04 08:22:36 -07:00
586fb15c2c
fullnode positional arguments may now be mixed with optional arguments ( #4151 )
2019-05-03 20:49:24 -07:00
297328ff9a
Fix improper tick sleeping time in test ( #4155 )
...
automerge
2019-05-03 20:15:10 -07:00
6b3384c205
Bump serde_yaml from 0.8.8 to 0.8.9 ( #4127 )
...
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml ) from 0.8.8 to 0.8.9.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases )
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.8.8...0.8.9 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-03 19:45:09 -07:00
3ef961fe37
Record poh ticks even when the node is not in leader schedule ( #4148 )
...
* remove obsolete test
2019-05-03 16:41:19 -07:00
a7b695c27a
Change replicators to slot-based ( #4118 )
2019-05-03 16:27:53 -07:00
5bb75a5894
Fix roots never being purged ( #4134 )
2019-05-03 15:17:37 -07:00
f3f416b7ba
Rename --network argument to --entrypoint ( #4149 )
2019-05-03 15:00:19 -07:00
31b74bdf0b
Display release date in the local timezone ( #4144 )
2019-05-03 14:54:25 -07:00
ed48d8323c
Reduce locking in Blocktree ( #4075 )
...
* Reduce lock contention in blocktree
* Store root slot in separate column
2019-05-03 16:46:02 -05:00
f91627a230
Remove extra-fullnode-args.sh ( #4142 )
2019-05-03 13:32:59 -07:00
f9c093022c
multinode-demo/: Merge bootstrap-leader.sh into fullnode.sh ( #4139 )
2019-05-03 12:33:48 -07:00
7fe3c75c6b
Add a node-specific ip echo service to remove dependency on ifconfig.co ( #4137 )
2019-05-03 11:01:35 -07:00
c8ed41167a
Factor tune_system() out of multinode-demo/ ( #4138 )
...
* Remove x bit from ulimit-n.sh
* Factor tune_system() out of multinode-demo/
2019-05-03 10:40:02 -07:00
5b2a82a951
Fix validator confirmation graph y axis scale ( #4136 )
2019-05-02 19:51:56 -07:00
441e76ebeb
Index buffered transactions at the correct offset ( #4126 )
...
* tests
2019-05-02 19:05:53 -07:00
c2dfb9900e
Revert "Change forwarded metrics to be in line with fetch stage metrics ( #4068 )" ( #4135 )
...
automerge
2019-05-02 17:36:19 -07:00
916458e132
Change erasure set size to 8:8 ( #4129 )
...
* Change erasure set size to 8:8
* Change tests to be agnostic to exact set size and ratio
* Add convenience methods for setting presence
2019-05-02 19:04:40 -05:00
ffb15578ce
remove cargo install cargo-audit from CI ( #4123 )
2019-05-02 15:35:47 -07:00
abcbbb925f
push latest, too ( #4131 )
2019-05-02 15:33:08 -07:00
059755fe59
install mdbook and svgbob_cli ( #4128 )
2019-05-02 15:32:31 -07:00
ae12dc2c75
Add specs to testnet participation guide ( #4078 )
2019-05-02 15:21:05 -07:00
37b5c6afaa
install cargo audit ( #4122 )
2019-05-02 13:16:21 -07:00
92ed7b36a2
Bump libc from 0.2.53 to 0.2.54 ( #4124 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.53 to 0.2.54.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.53...0.2.54 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-02 13:11:29 -06:00
379d2e6d95
add support for single-crate coverage to help iterate, update to latest grcov ( #4085 )
...
* add support for single-crate coverage to help iterate, update to latest grcov
* shellcheck
* fixup
* remove unused
* install grcov before setting RUSTFLAGS ;)
* rely on nightly having grcov installed
2019-05-01 23:33:28 -07:00
7f75cc8906
update nightly to 2019-05-01 ( #4111 )
...
* update nightly to 2019-05-01
* cargo fmt
* cargo fmt
* increase bench timeout
2019-05-01 20:08:42 -07:00
1ab5098576
Move get_clients into gossip_service ( #4109 )
2019-05-01 17:14:01 -07:00
598f765960
Fix net.sh for running on macos ( #4107 )
...
automerge
2019-05-01 16:03:35 -07:00
aac626c2c2
Add sample_txs function to perf_utils shared crate ( #4104 )
...
Shared code between bench-tps and bench-exchange
2019-05-01 15:58:35 -07:00
3eec3cfac2
Cleanup banking stage in lieu of recent transaction forwarding changes ( #4101 )
2019-05-01 15:13:10 -07:00
5eee9e62e5
Add swapper back-off ( #4088 )
...
* Add swapper back-off
* Reset back-off if bench-exchange suspects back-log
* nudge
* nudge
2019-05-01 14:29:57 -07:00
a7d18125d3
install grcov ( #4097 )
2019-05-01 14:27:17 -07:00
8202310073
Minor update to gossip spy command ( #4103 )
2019-05-01 14:25:26 -07:00
1e2ba110eb
Bump reqwest from 0.9.15 to 0.9.16 ( #4089 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.15 to 0.9.16.
- [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.9.15...v0.9.16 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-05-01 14:24:59 -06:00
62c9b7d850
Fix and un-ignore bench-tps local_cluster test ( #4019 )
...
* un-ignore bench-tps local_cluster test
And add bench_tps_fund_keys test.
* Unify generate_and_airdrop logic for tests
2019-05-01 13:21:45 -07:00
4f18fc836f
Forward transactions to the next slot leader ( #4092 )
...
- this ensures that transactions will reach in time for the next node to process them
2019-05-01 11:37:29 -07:00
950d8494ba
earlyoom: Stop using unsupported -k option ( #4096 )
...
automerge
2019-05-01 11:29:02 -07:00
cb528af4e2
fix accounts_db storage.reset() ( #4094 )
...
* fix accounts_db storage.reset()
* fix compilation errors, remove unused, fix test_accounts_grow() failure
2019-05-01 09:27:13 -07:00
ad27c30623
Cleanup bench-exchange messages ( #4093 )
2019-04-30 23:09:33 -07:00
9add8d0afc
Add alternative to Spy Nodes that can fully participate in Gossip ( #4087 )
...
automerge
2019-04-30 16:42:56 -07:00
af2e7ea285
Add 1 decimal to validator confirmation ( #4084 )
2019-04-30 16:37:03 -07:00
675a78aaa1
get vote_instruction off bank for tests ( #4086 )
...
* get vote_instruction off bank for tests
* clippy
2019-04-30 15:11:08 -07:00
408bdbce7a
Add non_default_stream parameter to cuda_verify ( #4079 )
2019-04-30 13:34:46 -07:00
1a259d4a3f
Prevent Requests/Caching of leader schedules for epochs beyond confirmed roots ( #4033 )
...
automerge
2019-04-30 13:23:21 -07:00
c5f8b4960c
Stop nodes in parallel
2019-04-30 10:42:59 -07:00
21f845ed39
Use more -w
2019-04-30 09:57:14 -07:00
7a369df9a7
Add flag to skip slow extras when deploying a large testnet
2019-04-30 09:26:50 -07:00
f02ec31c68
Flip if/else
2019-04-30 08:56:53 -07:00
d21fa4a177
v0.14: various net/ fixes for large clusters ( #4080 )
...
* net.sh: Add -F to discard validator nodes that didn't bootup successfully
* Relax sanity node count when validator bootup failure is permitted
* Less sanity for testnet-demo
* net.sh: Add -F to discard validator nodes that didn't bootup successfully
2019-04-29 21:38:32 -07:00
bd0871cbe7
Update release doc to include testnet update instuctions ( #4066 )
...
* Update release doc to include testnet update instuctions
* Fixup headers and pick nits
* Remove outdated testnet behavior
2019-04-29 19:40:18 -06:00
2604f8ac0a
Move implemented functionality into the Implemented Proposals section ( #4057 )
2019-04-29 17:29:41 -06:00
a7574f8657
Cleanup metrics dashboard ( #4072 )
2019-04-29 15:52:04 -07:00
73f250f03a
Make minimum warmup period 32 slots long ( #4031 )
...
* Make minimum warmup period 32 slots long
* PR fixes
2019-04-29 15:26:52 -07:00
bae0aadafa
Remove Bench Exchange Contract Execution graph
2019-04-29 14:29:54 -07:00
5524146ddf
push down noop's messages ( #4069 )
...
automerge
2019-04-29 14:10:36 -07:00
3b2adbc9df
Change forwarded metrics to be in line with fetch stage metrics ( #4068 )
...
automerge
2019-04-29 13:50:14 -07:00
4e41c81bc7
Fix the output from Gossip Discovery ( #4067 )
...
automerge
2019-04-29 13:19:24 -07:00
c545e812d0
Expand bank benches to include async/sync and native_loader ( #4026 )
2019-04-29 13:09:11 -07:00
c2193a37ce
cleanup unused function ( #4064 )
2019-04-29 12:45:14 -07:00
fabba82173
ignore non-descendants of roots in blocktree ( #4032 )
2019-04-29 12:29:14 -07:00
c3ec5ad846
testnet-demo: use more low quota nodes
2019-04-29 12:18:39 -07:00
c4945cc04a
Bump tar from 0.4.23 to 0.4.24 ( #4060 )
...
Bumps [tar](https://github.com/alexcrichton/tar-rs ) from 0.4.23 to 0.4.24.
- [Release notes](https://github.com/alexcrichton/tar-rs/releases )
- [Commits](https://github.com/alexcrichton/tar-rs/compare/0.4.23...0.4.24 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-29 10:34:30 -06:00
e2e55f81d0
Increase testnet-demo node count a little
2019-04-29 09:09:55 -07:00
d862565b16
Move Transact proposal to implemented ( #4055 )
...
And update names to reflect what was implemented.
2019-04-29 09:13:39 -06:00
0cc3956693
testnet-demo now runs across more GCE zones ( #4053 )
...
* testnet-demo now runs across more GCE zones
* Save zone info to config file
* Add geoip whitelist for common data centers
* Skip more of start
* Include -x for config
* Fetch private key from first validator node if necessary
* Correct -r propagation
2019-04-28 19:50:52 -07:00
4e5677f116
Sample random trade_infos for success ( #4043 )
...
Just looking at a single trade_info which may or may not succeed
can fail often.
2019-04-28 11:00:16 -07:00
acba1d6f9e
Roots are added out of order to the accounts index ( #4051 )
...
* fix root race
* assert root order
* fixup! assert root order
* last root test
* update
* fix tests
2019-04-28 10:27:37 -07:00
3e14af5033
bast bank ancestor check ( #4050 )
2019-04-28 10:27:09 -07:00
6f56501034
Correctly terminate instances across multiple zones
2019-04-28 09:09:02 -07:00
0b7269b64e
Switch testnet-demo to influxcloud
2019-04-27 22:12:50 -07:00
457a2d948b
Correct us-central1-b zone name
2019-04-27 21:43:18 -07:00
528bdf34fd
testnet-demo: skip over validator nodes that fail to boot
2019-04-27 21:34:23 -07:00
697cd17b59
Use GPU nodes for blockstreamer as well if rest of testnet has GPUs ( #4046 )
...
- The blockstreamer crashes otherwise, as sigverify() looks for CUDA libs
2019-04-27 20:45:38 -07:00
13fcfcb964
Blockstreamer annotation fix for non buildkite deployments ( #4045 )
2019-04-27 20:37:36 -07:00
9c1fd55768
testnet-demo: add more GCE zones, remove client
2019-04-27 16:52:09 -07:00
7f9a476660
Performance metrics computation methodology ( #4041 )
2019-04-27 16:37:51 -07:00
b07290df81
Add usage to net.sh when it encounters an invalid argument ( #4042 )
...
automerge
2019-04-27 16:12:13 -07:00
4b599a95b3
Bump libc from 0.2.51 to 0.2.53 ( #4009 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.51 to 0.2.53.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.51...0.2.53 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-27 14:04:23 -06:00
64222cfff7
update lock file for 0.15 ( #4039 )
...
automerge
2019-04-27 11:43:12 -07:00
e81d434903
Add DNS resolution for network/drone arguments ( #4038 )
...
automerge
2019-04-27 10:06:58 -07:00
bf0dd158de
Avoid inaccurate PATH nagging ( #4034 )
...
automerge
2019-04-27 09:11:02 -07:00
18e398131d
Fix issues with bench-tps ( #4005 )
2019-04-27 08:39:29 -07:00
4a5837a286
Add "
2019-04-27 07:41:21 -07:00
656e2649a7
v0.15.0
2019-04-27 07:38:46 -07:00
d36af917ea
Swap testnet-beta and testnet configuration
2019-04-26 23:24:35 -07:00
c81733b41a
Add testnet-demo configuration
2019-04-26 22:59:26 -07:00
b6558a2ef3
Remove created lockfile
2019-04-26 21:36:20 -07:00
634d8e25ee
testnet-deploy.sh updates
2019-04-26 21:29:42 -07:00
fea212e64e
Initialize stopNetwork var
2019-04-26 21:10:36 -07:00
e3ab76f1a7
Pin recommended release version ( #4021 )
2019-04-26 21:10:31 -07:00
87f1bd58b9
Reduce submit frequency of counters that are very frequent and killing metrics DB ( #4027 )
2019-04-26 20:37:40 -07:00
a056c1f18f
Don't send packets when msgs len is 0 ( #4030 )
...
And don't send metrics every iteration.
2019-04-26 17:27:31 -07:00
8b34fd2c75
Fix warnings on nightly ( #4028 )
2019-04-26 16:25:13 -07:00
b912ee7fdf
Nit: Spelling ( #4025 )
2019-04-26 16:02:37 -07:00
3cf708f019
nit: remove copyposta ( #4024 )
2019-04-26 16:02:13 -07:00
070e0e9613
Skip *de*serializing too
2019-04-26 14:43:07 -07:00
3e678511d2
Add enable/disable key value pairs into the steps block ( #4018 )
2019-04-26 14:26:05 -06:00
4ce2105548
Switch from a S3 URL to release.solana.com for release assets ( #4017 )
...
automerge
2019-04-26 13:06:55 -07:00
721c6a7e2d
Update metrics dashboard ( #4012 )
...
automerge
2019-04-26 10:32:49 -07:00
08f0fb1e14
Implement working lockfile for testnet lockout ( #4013 )
2019-04-26 11:22:23 -06:00
f5f5281f85
Add on-demand functionality to all testnets ( #4003 )
...
* Add on-demand functionality to all testnets
2019-04-26 10:02:23 -06:00
1684a7bd18
Move validators from testnet-beta to testnet ( #4011 )
...
* Move validators from testnet-beta to testnet
* Move testnet influxdb datasource to influxcloud
2019-04-26 09:02:12 -07:00
8b1724bb70
Serialize blocktree writes by locking the database ( #4008 )
...
Move several private methods to free functions
2019-04-26 10:52:10 -05:00
eebdfe8d73
wait for network recovery after restart ( #4000 )
2019-04-26 07:30:52 -07:00
82776b333d
Merge the "cloud" grafana dashboard into the normal dashboard ( #4007 )
...
automerge
2019-04-25 21:14:36 -07:00
e71ab55288
Rename in-tree program_ids to be base-58 human readable ( #4001 )
2019-04-25 17:58:49 -07:00
fd60ef8a8d
Allow metrics rate to differ from log rate ( #3993 )
...
And reduce metrics rate for exchange contract counters.
Since we can go 10s-100s thousands of contracts per second,
some metrics would be dropped if submitting every time.
2019-04-25 16:58:49 -07:00
aa0b67c93c
Use newer blockhash for recent_confirmed_blockhash api ( #3995 )
...
Oldest blockhash is sometimes too old and does not allow
for transactions to go through.
2019-04-25 16:57:25 -07:00
15aa07f2a0
Fix node count metrics ( #3997 )
...
- the count was truncated to avalanche neighborhood size
2019-04-25 13:47:38 -07:00
e4536621df
Log all uncommittable errors on validator ( #3999 )
2019-04-25 13:37:30 -07:00
a3c302c36a
Add signature polling to SyncClient ( #3996 )
...
automerge
2019-04-25 12:46:40 -07:00
d12705f9b0
Remove wait loops in non-GPU instance creation and add SSD option as default disk type ( #3992 )
2019-04-25 13:43:42 -06:00
0add5c1dc8
Move testnet buildkite env variables back into the tree ( #3989 )
2019-04-25 11:44:58 -07:00
a9e63455a1
Get blockhash every batch and don't wait for tx threads ( #3994 )
...
* Get blockhash every batch and don't wait for tx threads
* nudge
2019-04-25 11:20:08 -07:00
4dc0495a1b
Fix tar version check
2019-04-25 11:16:49 -07:00
5a79676b8a
Custom error decoder ( #3783 )
...
automerge
2019-04-25 10:29:44 -07:00
b67b0bff05
Do not enable rpc exit on the blockstreamer node ( #3977 )
2019-04-25 09:30:59 -07:00
4c200635b7
Shuffle initial mention of solana-gossip ( #3991 )
...
automerge
2019-04-25 09:30:30 -07:00
b98200aca4
Use rm -rf ( #3990 )
2019-04-25 08:58:34 -07:00
d59c1cd412
Expose Rpc methods to rpc_request ( #3988 )
...
* Add new rpc methods to rpc-request
* A-Z
2019-04-25 08:52:53 -06:00
c4d9dff590
Cherry-pick #3934 ( #3982 )
...
* Fix inserting bogus is_last blobs into blocktree
* Check for pre-existing blob before insert
* Ignore test that performs concurrent writes on blocktree as that is not supported
2019-04-25 00:04:49 -07:00
cf91ff8694
Remove Thin Client from storage stage ( #3976 )
...
automerge
2019-04-24 22:34:10 -07:00
e867ce0944
Find unique zones and delete nodes in each zone ( #3978 )
2019-04-24 17:50:42 -07:00
29a25990d3
Add provision in testnet scripts to ignore validator nodes that failed to bootup ( #3972 )
...
* Skip writing to config file if the node didn't bootup
* Detect dead nodes quicker
2019-04-24 16:23:26 -07:00
9a40ad76bd
Fix race in erasure metadata tracking ( #3962 )
...
* Fix erasure metadata race condition
* make erasure return the underlying error without wrapping it in the `solana::Error` type
* Add metric for erasure failures
* add tests to `ErasureMeta` indexing logic
* Add test to ensure erasure recovery failures don't cause panics
2019-04-24 17:53:01 -05:00
54b44977e0
Lower test time ( #3967 )
2019-04-24 12:19:31 -07:00
9c7ccc0e2b
More metrics to track memory usage ( #3966 )
...
automerge
2019-04-24 11:11:30 -07:00
7710ef8b2b
Bump num-derive from 0.2.4 to 0.2.5 ( #3960 )
...
Bumps [num-derive](https://github.com/rust-num/num-derive ) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/rust-num/num-derive/releases )
- [Changelog](https://github.com/rust-num/num-derive/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-derive/compare/num-derive-0.2.4...num-derive-0.2.5 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-24 11:50:26 -06:00
c969975fde
lockfree storage ( #3963 )
2019-04-24 11:51:57 -05:00
3eed6a6090
Annotate testnet buildkite logs with blockexplorer URL ( #3964 )
...
automerge
2019-04-24 08:09:37 -07:00
1661a7a55f
Correct variable name
2019-04-24 07:39:29 -07:00
6293d324db
Spellnig
2019-04-24 07:39:29 -07:00
c1ecfec3b0
Bump stable build timeout
2019-04-23 20:29:14 -07:00
05b4dbf148
Document an alternative mechanism to locate the validator's vote id
2019-04-23 19:35:20 -07:00
4efada6d84
Update keygen.rs
2019-04-23 19:24:42 -07:00
23c01473a0
Use cache for dll symbols ( #3950 )
...
Speeds up loaded programs.
2019-04-23 17:25:03 -07:00
f2e2106f62
Bench exchange tweaks ( #3957 )
2019-04-23 16:48:17 -07:00
0cbac26591
Add genesis blockhash to blobs ( #3953 )
2019-04-23 16:24:44 -07:00
4e7e5ace9d
Add support for Azure instances in testnet creation ( #3905 )
...
* Add support for Azure instances in testnet creation
* Fixup
* Fix shellcheck errors
* More shellcheck and cleanup node creation and deletion
* More shellcheck and cleanup node creation and deletion
* Fixup instance wait API
* Fix revieew comments and add GPU installation extension
2019-04-23 16:41:45 -06:00
ab11327e34
Fix mismatch between leader/validator bank votability ( #3942 )
...
* Fix mismatch between leader/validator bank votability
2019-04-23 15:32:19 -07:00
3ba93aa8fe
Facility to pass extra arguments to bench clients from net.sh command ( #3952 )
...
automerge
2019-04-23 15:13:29 -07:00
c309cd80aa
Add getClusterNodes/getSlotLeader JSON RPC API ( #3940 )
...
* Minor cleanup
* Include _this_ node in the contact info trace
* Add getClusterNodes/getSlotLeader RPC API
2019-04-23 14:46:41 -07:00
d22a1c9b1f
Use smaller batch size in sigverify stage if CUDA is not available ( #3951 )
2019-04-23 12:41:50 -07:00
29698fcd38
Cleanup stragglers from move-to-transfer rename ( #3947 )
2019-04-23 13:30:42 -06:00
7372ec9e1a
Use poh would_be_leader check in banking stage to hold or forward txs ( #3948 )
2019-04-23 11:56:30 -07:00
840a64ee8b
Optimize exchange contract ( #3926 )
2019-04-23 11:39:53 -07:00
524bc2b9a6
Bump hashbrown from 0.2.2 to 0.3.0 ( #3931 )
...
Bumps [hashbrown](https://github.com/Amanieu/hashbrown ) from 0.2.2 to 0.3.0.
- [Release notes](https://github.com/Amanieu/hashbrown/releases )
- [Changelog](https://github.com/Amanieu/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/hashbrown/compare/v0.2.2...v0.3.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-23 10:15:33 -07:00
62a29a41d1
Bump tar from 0.4.22 to 0.4.23 ( #3944 )
...
Bumps [tar](https://github.com/alexcrichton/tar-rs ) from 0.4.22 to 0.4.23.
- [Release notes](https://github.com/alexcrichton/tar-rs/releases )
- [Commits](https://github.com/alexcrichton/tar-rs/compare/0.4.22...0.4.23 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-23 10:15:12 -07:00
5406d82d89
fix race in get_exclusive_storage() and load() ( #3941 )
...
* Revert "Revert "account storage is not in sync with the index after gc (#3914 )" (#3936 )"
This reverts commit 4f47fc00bc
.
* fix get_exclusive_storage
* clippy
2019-04-23 09:56:36 -07:00
de6af95061
Process forwarded packets only when the node is about to be the leader ( #3935 )
...
* Tests and metrics
2019-04-22 19:49:32 -07:00
43f7cd8149
Fix Retransmit slamming the leader with its own blobs ( #3938 )
2019-04-22 18:41:01 -07:00
69e67d06a7
Default to Docker based testnet deployment on unsupported Ubuntu versions ( #3937 )
...
* Run docker if Ubuntu version is unsupported
* ShellCheck fixes
2019-04-22 18:22:43 -07:00
4f47fc00bc
Revert "account storage is not in sync with the index after gc ( #3914 )" ( #3936 )
...
This reverts commit 101d6b92ee
.
2019-04-22 17:14:41 -07:00
4b04c37c36
verify that blobs match a known leader for the slot ( #3927 )
...
* validate that blobs match a known leader for the slot
* clippy
2019-04-22 15:21:10 -07:00
b27b515186
Add more dashboard text to metrics readme ( #3925 )
2019-04-22 14:55:19 -07:00
05bcb7f292
Add stop node command to solana-gossip ( #3928 )
2019-04-22 14:51:20 -07:00
95a16426f3
Cleanup bench-exchange ( #3919 )
...
* bench-exchange changes
Generate new keypair for each bench-exchange
Add metrics
Tweak network sleep parameters for better reliability.
* Bench-exchange contract metrics
2019-04-22 13:16:28 -07:00
bec094bb3e
Start bench tps clients as default ( #3917 )
2019-04-21 20:18:52 -07:00
af9ebf1d1a
Add status logging while processing a ledger ( #3916 )
2019-04-20 20:17:57 -07:00
6f2f7018e8
Update testnet-participation.md
2019-04-20 19:14:07 -07:00
101d6b92ee
account storage is not in sync with the index after gc ( #3914 )
...
* account storage is not in sync with the index after gc
* builds
* clippy fmt
* test
* purge dead forks on store
* rm println
* also fixed count_stores
* comments
2019-04-20 20:50:50 -05:00
349e8a9462
Ensure forwarded Blobs don't break Erasure ( #3907 )
2019-04-20 16:44:06 -07:00
c0bffb56df
Update Avalanche to use Epoch Stakes ( #3900 )
2019-04-19 22:31:40 -07:00
970cc32e65
Fix Data Plane computation when stakes are equal ( #3913 )
2019-04-19 21:07:21 -07:00
3ab492ccf8
save erasure set size, initialize coding blob erasures with that size ( #3910 )
...
* save erasure set size, initialize coding blob erasures with that size
* fixup
* fixup
2019-04-19 20:22:51 -07:00
d83a71d89f
More AWS regions for testnet deployment ( #3911 )
...
- also some minor fixes to gce.sh
2019-04-19 17:46:14 -07:00
efbb573316
add an env::var driven localcluster test ( #3906 )
2019-04-19 15:47:03 -07:00
85554087d1
treat negatives like zero instead of crashing out ( #3899 )
2019-04-19 15:46:39 -07:00
c3155a6e39
silence sigverify disabled, make disabling sigverify easier ( #3901 )
...
* silence sigverify disabled, make disabling sigverify easier
* fixup
2019-04-19 14:18:19 -07:00
4abe95abec
Helper function for filtering/creating clients in bench-exchange ( #3903 )
2019-04-19 14:05:07 -07:00
e0acd48944
Write bench-tps in terms of client ( #3904 )
...
* Write bench-tps in terms of client
* Add transactions_addr method for logging
* Move cluster config outside do_bench_tps
* Add BankClient test
2019-04-19 15:04:36 -06:00
afb00432d4
Add BankClient support to bench-exchange ( #3902 )
2019-04-19 13:18:20 -07:00
320bd66c84
handle zero num_will_fit ( #3892 )
...
* handle zero num_will_fit
* clippy
2019-04-19 12:02:33 -07:00
1a9ac62f60
Add bench-exchange support to the net framework ( #3893 )
2019-04-19 09:56:01 -07:00
809b051f10
Allow thin clients to be passed across thread boundaries ( #3887 )
...
* Remove ThinClient wrapper
* Allow RpcClient (and ThinClient) to be passed across thread boundaries
* Pass clients, not constructors
* Fix bad rebase
2019-04-19 08:54:21 -06:00
baac21209e
Recreate SOLANA_INSTALL_UPDATE_MANIFEST_KEYPAIR_x86_64_unknown_linux_gnu ( #3895 )
2019-04-19 07:39:41 -07:00
5fb8baed04
Process async BankClient transactions in batches ( #3738 )
...
* Process async transactions in batches
This aims to process transactions at least as fast as LocalCluster
* Add benchmark
2019-04-19 07:29:07 -06:00
512bfc93cb
Add a cache for leader schedules ( #3841 )
...
* Add a cache for leader schedules
2019-04-19 02:39:44 -07:00
0f88872650
Compatible network is now default ( #3896 )
2019-04-18 23:19:03 -07:00
f4e40d2c41
Add bench-exchange tx send metrics ( #3890 )
2019-04-18 22:31:25 -07:00
6eac5951ed
Revert "Revert "revert-revert-erasure and erasure fixes ( #3833 )" ( #3855 )" ( #3889 )
...
This reverts commit 596f611ede
.
2019-04-18 21:56:43 -07:00
475a74d37f
Reduce packet recv batches ( #3894 )
...
* Reduce packet recv batches
* Fix type
2019-04-18 19:24:37 -07:00
b8ee952135
Dedup drone code ( #3885 )
2019-04-18 19:06:56 -06:00
15bed29afa
Add rpc request debug to make_rpc_request ( #3888 )
2019-04-18 17:04:40 -07:00
6dbe7e8bee
Better drone error when cap is hit. ( #3884 )
...
* Better drone error when cap is hit.
* Update drone/src/drone.rs
Co-Authored-By: sakridge <sakridge@gmail.com >
2019-04-18 16:05:45 -07:00
2cd556e43c
Add drone cap parameter ( #3876 )
2019-04-18 15:42:20 -07:00
060793f451
Fix testnet automation scripts ( #3886 )
...
- missing machine type since change in gce.sh
2019-04-18 15:12:35 -07:00
7e409a13cd
Ack on empty Gossip Pull Responses and keep Entrypoint around ( #3881 )
...
* Ack on empty Gossip Pull Responses and keep Entrypoint around
* Address comments and fix test
* Update core/src/cluster_info.rs
Co-Authored-By: sagar-solana <sagar@solana.com >
* Update core/src/cluster_info.rs
Co-Authored-By: sagar-solana <sagar@solana.com >
2019-04-18 15:12:17 -07:00
aab410380e
Fix net for macos and local ( #3872 )
2019-04-18 14:49:35 -07:00
67b8ad6a0f
fix entries.to_blobs() ( #3882 )
...
* * rename Entry::serialized_size() to Entry::to_blob_size() to better
reduce confusion with bincode, et al. and to better reflect its
real meaning
* fix implementation of to_blob_size() to actually return what happens
when we do entries.to_blobs() (i.e. we serialize Vec<Entry>, not Entry)
* update tests to be more rigorous
* clippy
2019-04-18 14:45:41 -07:00
c1e39a3b98
git ignore more ( #3870 )
2019-04-18 14:23:34 -07:00
7e1a7b1f64
Add bench-exchange to installed bins ( #3883 )
...
Need to run exchange clients on remote machines.
2019-04-18 13:55:41 -07:00
a9cfae486c
Revert-revert migrate to ed25519-dalek crate ( #3877 )
...
* Revert "Revert "Migrate from ring to ed25519-dalek, take 2 (#3844 )" (#3868 )"
This reverts commit 6a878602f2
.
* Fix Signature::verify method
2019-04-18 14:37:20 -06:00
8514d27c2f
Update testnet-participation.md
2019-04-18 13:16:15 -07:00
8999bfef65
Try to delete nodes in all cloud zones ( #3874 )
2019-04-18 13:16:14 -07:00
96425fb520
Don't panic the drone on a request that ends in error. ( #3869 )
2019-04-18 12:18:31 -07:00
ce505d24b1
Bump ws from 0.7.9 to 0.8.0 ( #3866 )
...
Bumps [ws](https://github.com/housleyjk/ws-rs ) from 0.7.9 to 0.8.0.
- [Release notes](https://github.com/housleyjk/ws-rs/releases )
- [Changelog](https://github.com/housleyjk/ws-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/housleyjk/ws-rs/compare/v0.7.9...v0.8.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-18 13:16:30 -06:00
f2187780d2
Do not forward vote transactions ( #3871 )
2019-04-18 11:18:49 -07:00
6a878602f2
Revert "Migrate from ring to ed25519-dalek, take 2 ( #3844 )" ( #3868 )
...
This reverts commit e9b82bacda
.
2019-04-18 11:47:34 -06:00
f8543a268f
solana-gossip now displays other spy nodes and contact info age ( #3867 )
2019-04-18 09:48:21 -07:00
e9b82bacda
Migrate from ring to ed25519-dalek, take 2 ( #3844 )
...
* Migrate from ring to ed25519-dalek
* Move gen_keypair_file test to a more appropriate location
* Fixup bench-exchange and add helper fn for single deterministic keypair
* Update golden
2019-04-18 10:38:32 -06:00
684e1c73dd
Allow for custom cpu config on gce and use 20gb ram for clients ( #3856 )
2019-04-18 09:36:11 -07:00
901c74b653
Add packages and fix publish script ( #3839 )
...
* Add packages and fix publish script
* Fixup
2019-04-18 09:24:18 -06:00
2c0afe71b2
minor grooming
2019-04-18 07:31:42 -07:00
2f4a3ed190
Use a separate channel to process votes in banking stage ( #3861 )
...
- This will help expedite the vote processing on peer nodes
2019-04-17 21:07:45 -07:00
26a7eb6fa5
Don't use barrier transaction in testnet for perf testing ( #3862 )
2019-04-17 20:29:36 -07:00
aa21f5343a
Remove broken read().unwrap() call to a non-shared packet
2019-04-17 21:24:40 -05:00
9c2809db21
Delete SharedPackets ( #3843 )
...
* Delete SharedPackets
* Fix bench and sigverify
2019-04-17 18:15:50 -07:00
9ccd362461
Correct ./net.sh sanity argument order
2019-04-17 18:10:38 -07:00
596f611ede
Revert "revert-revert-erasure and erasure fixes ( #3833 )" ( #3855 )
...
This reverts commit 6bef16a6a1
.
2019-04-17 18:04:30 -07:00
78d5ace754
Refactor multinode-demo/ scripts to avoid shipping fullnode-x.sh ( #3835 )
2019-04-17 18:03:58 -07:00
2b3218b5f2
Fix flaky tests by waiting for test node to boot ( #3845 )
2019-04-17 17:50:34 -07:00
d0fb55d9b1
Allow testnet creation with no validator nodes ( #3846 )
2019-04-17 17:38:18 -07:00
a2c8e3952f
Fixes to TPS calculation and reporting ( #3836 )
...
Fixes to TPS calculations and reporting
2019-04-17 15:37:01 -07:00
beb8c7914e
Disable testnet-sanity ledger verification, too slow
2019-04-17 15:19:37 -07:00
6bef16a6a1
revert-revert-erasure and erasure fixes ( #3833 )
...
* fix erasure, more tests for full blobs, more metrics
* Revert "Revert "Use Rust erasure library and turn on erasure (#3768 )" (#3827 )"
This reverts commit 4b8cb72977
.
2019-04-17 15:13:54 -07:00
e03215c4c0
Remove iterations with leader rotation disabled
2019-04-17 15:07:51 -07:00
8d1fd29fa6
Add readme ( #3838 )
2019-04-17 14:42:04 -07:00
46f655eddd
Add .gitignore to bench-exchange ( #3837 )
2019-04-17 14:34:04 -07:00
ca36a6f4e0
Run sanity only in the zone that contains the bootstrap leader and blockstreamer nodes ( #3828 )
2019-04-17 14:25:40 -07:00
fdb12b54fa
Run multinode-demo from anywhere ( #3831 )
2019-04-17 14:23:32 -07:00
09dd4bb702
Fix build ( #3834 )
2019-04-17 15:17:04 -06:00
01657ddfe7
packet.rs optimizations ( #3818 )
...
* packet.rs optimizations
* remove redundant and aggressive metric submission
* remove metrics submit(), get compiling again, honor log level in inc()
2019-04-17 14:14:57 -07:00
51a2988bb2
Revert "Rename programs to instruction_processors ( #3789 )" ( #3824 )
...
This reverts commit 34344982a9
.
2019-04-17 15:05:49 -06:00
083090817a
Fix DuplicateSignatures caused by races on frozen banks ( #3819 )
...
* Duplicate parent account locks into children in new_from_parent, check parent locks in lock_account()
2019-04-17 13:45:33 -07:00
f3676e2d03
Enable bench exchange test ( #3830 )
2019-04-17 13:37:02 -07:00
4b8cb72977
Revert "Use Rust erasure library and turn on erasure ( #3768 )" ( #3827 )
...
This reverts commit b9bb5af4a5
.
2019-04-17 12:52:12 -07:00
2518e95fb0
Add bench-exchange ( #3826 )
2019-04-17 11:28:26 -07:00
bc17edcda3
Add --keypair to avoid writing a new one to ~ in CI
2019-04-17 10:12:18 -07:00
eb185b9ea5
testnet-beta sanity no longer tries to check inactive zones
2019-04-17 09:30:41 -07:00
aa6c82cfdc
Add show-vote-account command ( #3814 )
2019-04-17 07:45:07 -07:00
b9bb5af4a5
Use Rust erasure library and turn on erasure ( #3768 )
...
* split out erasure into new crate; add implementation using rust reed-solomon-library
* Track erasures with a &[bool] instead of indexes
* fix bug that reported the number of erasures incorrectly
* Introduce erasure `Session` for consistent config
* Increase test coverage; fix bugs
* Add ability to remove blobs from erasure meta tracking. test added
* Track deletion of coding blobs in blocktree via ErasureMeta. Added to
test
* Remove unused functions in blocktree
* add randomness to recovery thread to exercise recovery due to either new
data or coding blobs
* Add unit test for ErasureMeta index handling
* Re-enable test in broadcast stage
2019-04-16 23:00:24 -05:00
1e20d449ce
bank_height / slot
is the block drop rate (#3816 )
...
* bank_height/slot would give is the block drop rate
* use metrics
2019-04-16 19:35:38 -07:00
e94f268346
reduce sigverify verbosity ( #3813 )
2019-04-16 18:25:53 -07:00
7ec198b9cc
Minor doc fixes++
2019-04-16 17:45:48 -07:00
b2e762ccc6
Minor doc fixes
2019-04-16 17:43:52 -07:00
bee411e826
Preserve extra dependency annotations (optional=,features=) during version bump ( #3810 )
2019-04-16 15:12:10 -07:00
34344982a9
Rename programs to instruction_processors ( #3789 )
...
* Rename programs to instruction_processors
* Updates around the code base to support instruction_processors rename
* Kabab instruction_processors
* Update Cargo.toml files and scripts to use instruction-processors
* Update Cargo.toml to use instruction-processors
* Update CI scripts to use instruction-processors
2019-04-16 22:39:00 +02:00
f73d38739a
Split AccountsDB from Accounts ( #3808 )
...
Split AccountsDB from Accounts
2019-04-16 13:32:22 -07:00
63d66ece57
net/ testnet nodes now stake more lamports ( #3812 )
...
* Add --bootstrap-leader-lamports
* Generalize --no-stake into --stake NUM
* Use a large stake for net/ fullnodes
* Setup vote account before starting fullnode to avoid mixed log output
2019-04-16 13:03:01 -07:00
a4b5493ba1
Document unsafe usage in AppendVec ( #3804 )
...
* document unsafe usage
* clippy
2019-04-16 10:53:37 -07:00
8d613f3977
Selectively deploy beta testnet to GCE/AWS or both clouds ( #3805 )
2019-04-16 10:40:30 -07:00
0ff2bfdd0c
Fewer unsafe hacks for AppendVec ( #3801 )
...
* storage account changes
* cleanup
* checks
* comments
* clippy
* tests
* woot!
* comments
* benches
2019-04-16 08:50:05 -07:00
141e25d567
Bump hashbrown from 0.2.1 to 0.2.2 ( #3800 )
...
Bumps [hashbrown](https://github.com/Amanieu/hashbrown ) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/Amanieu/hashbrown/releases )
- [Changelog](https://github.com/Amanieu/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/hashbrown/compare/v0.2.1...v0.2.2 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-16 06:49:02 -07:00
c67cc694ae
Remove stake from ./net sanity
ephemeral validator ( #3797 )
2019-04-15 21:42:25 -07:00
d77359914f
Log the spy node id by default for better debug ( #3796 )
2019-04-15 20:58:37 -07:00
9293a54234
Remove stray +
2019-04-15 20:28:11 -07:00
d9983905b3
Cargo.lock
2019-04-15 20:28:07 -07:00
3dc47a46d5
Revert "Revert "disable staking of blockstreamer node""
...
This reverts commit 03da63b41b
.
2019-04-15 20:11:00 -07:00
8638b3bb19
Update Cargo.toml files for version = 0.14.0
2019-04-16 02:50:20 +00:00
819a0c5c7e
Update testnet automation script to reflect changes in metrics ( #3779 )
2019-04-15 18:56:04 -07:00
7afd8644b3
Clarify release instructions ( #3792 )
2019-04-15 19:05:15 -06:00
68fc303b9b
Rework Accounts for fast squash, hashing state and checkpoint recovery. ( #3613 )
...
* accounts rewrite
* ignore grow tests
* skip duplicate roots
* allow for a root race
* logger
* accounts_index tests
* tests
* tests
2019-04-15 17:15:50 -07:00
2bbed7727f
Wait a bit for the funding transactions to go through ( #3788 )
2019-04-15 16:30:00 -07:00
63b1fd3675
Correctly fill out IP address for rpc ports ( #3791 )
2019-04-15 16:21:06 -07:00
3fcf03ff3e
Refactor LocalCluster and add support for listener nodes ( #3790 )
2019-04-15 15:27:45 -07:00
80f3568062
Upgrade to Rust 1.34.0 ( #3781 )
...
* Upgrade to Rust 1.34.0
* Remove redundant closures
Thanks Clippy!
2019-04-15 15:56:08 -06:00
3e1214a871
Don't add reviewers to draft PRs ( #3780 )
2019-04-15 15:03:44 -06:00
149d809e86
Minor cli help cleanup ( #3786 )
2019-04-15 13:36:14 -07:00
784dbb00ab
Bump reqwest from 0.9.14 to 0.9.15 ( #3785 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.14 to 0.9.15.
- [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.9.14...v0.9.15 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-15 13:31:33 -07:00
87aef92e71
Fix up bash array handling ( #3771 )
2019-04-15 13:25:44 -07:00
d026ebb83a
Use tvu_peers() since validators no longer run an RPC port by default ( #3784 )
2019-04-15 13:25:09 -07:00
64c6f05da2
persist set_root() and use it in blocktree_processor to limit squashes ( #3782 )
...
* rename locktower's slot to epoch
* persist set_root() and use it in blocktree_processor to limit squashes
2019-04-15 13:12:28 -07:00
8963500aa8
Bump generic-array from 0.12.0 to 0.13.0
...
Bumps [generic-array](https://github.com/fizyk20/generic-array ) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/fizyk20/generic-array/releases )
- [Changelog](https://github.com/fizyk20/generic-array/blob/master/CHANGELOG.md )
- [Commits](https://github.com/fizyk20/generic-array/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-15 12:35:06 -06:00
175c0090de
Bump hashbrown from 0.2.0 to 0.2.1
...
Bumps [hashbrown](https://github.com/Amanieu/hashbrown ) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/Amanieu/hashbrown/releases )
- [Changelog](https://github.com/Amanieu/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/hashbrown/compare/v0.2.0...v0.2.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-15 12:18:44 -06:00
5c4689a326
rename locktower's slot to epoch ( #3776 )
2019-04-15 10:46:14 -07:00
5e2831f09e
Disable cluster restart attempt
2019-04-15 09:59:53 -07:00
666882fbbd
-r does not require an argument
2019-04-15 09:40:34 -07:00
6c9fba058b
Reenable validator sanity check for testnet-{beta,edge}
2019-04-15 08:58:29 -07:00
0767c0c07f
Add DNS resolution to cli tools
2019-04-14 21:25:46 -07:00
6859907df9
more rigorous erasure constants, comments ( #3766 )
...
* more rigorous erasure constants, comments
* new header size means new golden
2019-04-14 21:10:09 -07:00
de52747950
remove max_tick_height replicode ( #3765 )
2019-04-14 19:15:31 -07:00
bd1db51e07
delete db_window.rs, move contents to window_service, clean up process_blobs ( #3746 )
2019-04-14 18:52:05 -07:00
dd005fb50e
fix broadcast to *always* call erasure generation, simplify generator, test slot reset better ( #3764 )
2019-04-14 18:12:37 -07:00
542bafeb71
groom packet.rs, add blob.data alignment ( #3763 )
2019-04-14 17:30:08 -07:00
e57a0ab05d
test some bits ( #3762 )
2019-04-14 17:10:30 -07:00
2c745ce108
Shorten recv wait when there are buffered packets in banking stage ( #3757 )
...
- packets are buffered on leader rotation, when the next leader is
unknown
- shortening the wait allows the banking stage to poll for next
leader more frequently
2019-04-14 12:34:07 -07:00
f6aa90e193
Add fullnode --dynamic-port-range option
2019-04-14 07:08:29 -07:00
c7a7d6db84
Use |solana-keygen pubkey| instead of |solana-wallet address|
...
Same end result but solana-keygen is a smaller program that builds
faster
2019-04-14 07:08:29 -07:00
2277a39dd2
Default solana-gossip log-level to 'info'
2019-04-14 07:07:15 -07:00
ee35ed5250
Refactored buffered packet forwarding code ( #3750 )
...
- Added unit tests
- Don't consume packets if bank is not known
2019-04-13 23:19:54 -07:00
92b5e131fe
Name sigverify threads
2019-04-13 11:24:36 -07:00
1f35779821
Add solana-install usage info
2019-04-12 17:08:18 -07:00
5b438d917d
Create fullnode-x.sh wrapper script for use with |solana-install run ...|
2019-04-12 17:08:18 -07:00
bf4d5745c9
Symlink the entire release to preserve relative paths from bin/
2019-04-12 17:08:18 -07:00
1e8f83a74a
Use a better name for new api
2019-04-12 14:58:22 -07:00
1db80d79fc
Update get recent blockhashes to return confirmed blockhashes only
2019-04-12 14:58:22 -07:00
1dac4c33b8
Change sigverify counter from entries to packets
...
batch or entries kind of useless since it can have some
variable number of packets
2019-04-12 13:19:46 -07:00
656b3139e3
see perf-libs all the time ( #3748 )
2019-04-12 08:38:14 -07:00
8b08fe265a
AppendVec PR with using "/tmp" as the default directory and a random file ( #3743 )
...
* AppendVec with raw pointers
* fixed test target directory
2019-04-12 04:30:17 -07:00
29dc139a22
shellcheck
2019-04-11 17:39:04 -07:00
44ebfa736a
Don't forward buffered packet to the same node ( #3712 )
...
- instead, process the packets
2019-04-11 17:23:45 -07:00
b001685e7b
Added missing feature flag for erasure ( #3741 )
2019-04-11 15:25:32 -07:00
ca6290b117
remove wallet stuff, bootstrap node is already staked ( #3744 )
2019-04-11 15:16:38 -07:00
767e0a201e
stak*->vote ( #3740 )
2019-04-11 14:52:56 -07:00
877ec08280
Send recent votes in Vote Transactions ( #3734 )
2019-04-11 14:48:36 -07:00
485013b7ce
Revert "AppendVecs that can return references and read/append without locks ( #3713 )"
...
This reverts commit f669ae5868
.
2019-04-11 14:47:30 -07:00
efd19b07e7
implement erasure-based recovery inside blocktree ( #3739 )
...
* implement recover in blocktree
* erasures metric
* erasure metrics only
* fixup
2019-04-11 14:14:57 -07:00
d31989f878
CustomError from Vec->u32
2019-04-11 13:59:48 -07:00
f669ae5868
AppendVecs that can return references and read/append without locks ( #3713 )
...
* AppendVec with raw pointers
* appendvecs
* imports
* review
* review comments
* clippy
2019-04-11 13:16:56 -07:00
a28c3b0e9a
Consume Bank in BankClient
...
This will allow BankClient to spin up a thread to use the Bank.
It'll also ease the transaction from BankClient to ThinClient since
it won't let you depend on Bank.
Drawback, you the transition from Bank to BankClient will be harder
because the Bank methods are inaccessible.
2019-04-11 12:16:33 -07:00
0aa05158c9
Adjust noop/failure program names to be consistent with all other programs
2019-04-11 11:59:56 -07:00
787dc5748a
Fixed DuplicateSigs ( #3727 )
...
* Fixed DuplicateSigs by not recording errors in signature cache of bank
2019-04-11 11:51:34 -07:00
8ada4bfd1f
Remove test now covered by Vote crate
2019-04-11 10:53:11 -07:00
5d4624e75f
Use Bank::add_instruction_processor to bypass manual build step
2019-04-11 10:53:11 -07:00
2f1b0bf4f5
Add solana-install deployments to the testnets
2019-04-11 10:03:35 -07:00
e1d5bb1a26
add redundant broadcast ( #3724 )
...
* add redundant broadcast
* crank up to full redundancy
* Update broadcast_stage.rs
* Update broadcast_stage.rs
* Update broadcast_stage.rs
* Update broadcast_stage.rs
2019-04-11 09:15:17 -07:00
d0f46d6a8a
Cleanup client traits and create super trait ( #3728 )
2019-04-11 00:25:14 -07:00
4b6c0198ad
reset coding generator on slot boundaries ( #3726 )
2019-04-10 18:18:55 -07:00
f1e7237c09
vote_api cleanup ( #3710 )
...
* vote_api cleanup
* fixups
* fixup
* remove unused code
* revert removal of serialize and deserialize
* ...
* increase coverage, bootstrap staking
* Sagar's STAKE to my VOTE
2019-04-10 17:52:47 -07:00
1b5845ac3e
Fix getting votes from gossip ( #3723 )
2019-04-10 17:16:08 -07:00
58a049ebe5
pick up logs as artifacts ( #3721 )
2019-04-10 17:05:39 -07:00
c0808d01f8
Add tests
2019-04-10 15:51:00 -07:00
7fd5e51168
Make sure bank 0 is votable and correctly designate signer
2019-04-10 15:51:00 -07:00
d2ea782372
Always use bootstrap vote account for leader
2019-04-10 15:51:00 -07:00
e6f02d1a10
Use latest release for testnet doc ( #3711 )
...
* Use latest release for testnet doc
* Clean up markdown
2019-04-10 15:01:37 -07:00
894135a084
Less pub in PohRecorder
2019-04-10 12:50:45 -07:00
df9cf92782
testnet-participation.md is now /implemented/
2019-04-10 12:26:47 -07:00
f243a96e01
Remove testnet/metrics server debug info from book
2019-04-10 12:26:47 -07:00
842d146b0d
Limit USE_INSTALL scope
2019-04-10 11:50:23 -07:00
81d43c57a2
Add missing feature flags to gossip ( #3708 )
2019-04-10 06:52:46 -07:00
7da4142d33
Process votes from gossip only in leader node ( #3707 )
2019-04-09 22:06:32 -07:00
88e5b14afc
Exit faster on sanity failures
2019-04-09 17:16:15 -07:00
0b95a5c121
Include blockstreamer node in sanity
2019-04-09 16:52:57 -07:00
62c28a8592
Bump reqwest from 0.9.13 to 0.9.14
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.13 to 0.9.14.
- [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.9.13...v0.9.14 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-09 16:22:17 -07:00
b80c6840da
Metrics dashboard publish script updates for influx cloud
2019-04-09 15:44:01 -07:00
003fd6545c
Logging for unexpected validator errors ( #3697 )
2019-04-09 15:05:43 -07:00
393ed978d1
Update testnet monitor to use influx cloud end point ( #3700 )
2019-04-09 14:56:21 -07:00
2c93062f54
Improve banking_stage performance messages
...
Use transaction count instead of batch count,
and set the recv_start from when we finished processing
the previous batch to get a more accurate number.
2019-04-09 14:54:12 -07:00
7b2abf2087
Update count for the right store ( #3683 )
2019-04-09 13:48:13 -07:00
a5254a3f7a
Add TESTNET_TAG Env var to buildkite ( #3692 )
...
* Add TESTNET_TAG Env var to buildkite
2019-04-09 13:00:45 -07:00
dc6c34da5d
Fast-track vote signature verification and processing ( #3695 )
2019-04-09 12:57:12 -07:00
d4eebcc2aa
Check for frozen in confirm_forks ( #3678 )
2019-04-09 11:45:38 -07:00
4f232cbc27
Make MAX_RECENT_BLOCKHASHES <= MAX_HASH_AGE_IN_SECONDS ( #3679 )
...
* Make MAX_RECENT_BLOCKHASHES == MAX_HASH_AGE_IN_SECONDS
2019-04-09 11:45:25 -07:00
76e524ae48
Remove check for 0 additional nodes
...
Network with 1 leader is valid.
2019-04-09 11:16:55 -07:00
6ac919c71a
Set warn log level only for perf testnets
2019-04-09 11:09:16 -07:00
1ba4806f8c
Document recent -z and -x command-line arg changes
2019-04-09 10:39:55 -07:00
20a2c59b70
Reduce udp read/write buffer sizes
...
With 18.04, these large values cause packet errors and mess up the system.
2019-04-08 15:21:45 -07:00
6540fa9121
Add sleep for check_signature
2019-04-08 15:09:02 -07:00
21287ba554
Bump clap from 2.32.0 to 2.33.0
...
Bumps [clap](https://github.com/clap-rs/clap ) from 2.32.0 to 2.33.0.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-08 12:56:44 -07:00
7295a84d69
Bump bincode from 1.1.2 to 1.1.3 ( #3672 )
...
Bumps [bincode](https://github.com/TyOverby/bincode ) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/TyOverby/bincode/releases )
- [Commits](https://github.com/TyOverby/bincode/compare/v1.1.2...v1.1.3 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-08 12:55:18 -07:00
483cc2fa4e
Support old repair strategy for reparing slots in a range for supporting replicators ( #3665 )
2019-04-08 12:46:23 -07:00
e551f6b552
Support settable drone lamport cap ( #3675 )
2019-04-08 12:37:01 -07:00
44b391096d
Configurable local cluster native processors ( #3676 )
2019-04-08 11:15:58 -07:00
d45d8e9670
s/credit/read/
2019-04-08 08:39:59 -07:00
88bda58836
remove unused ( #3674 )
2019-04-08 04:50:42 -07:00
79bf3cf70d
add rewards math ( #3673 )
...
* add rewards math
* fixup
2019-04-07 21:45:28 -07:00
72b7419e1c
Define list of valid cloud regions for GCE and AWS ( #3670 )
2019-04-07 14:29:09 -07:00
7baff0920c
Propagate cloud env variables to buildkite job
2019-04-07 11:48:25 -07:00
d9ecc278b4
Configure cloud zones and nodes from buildkite for beta testnet ( #3666 )
2019-04-07 08:25:34 -07:00
0904df327d
Parallelize cloud node deployment commands in case of multiple zones ( #3657 )
2019-04-07 08:13:48 -07:00
444e87f888
Fix metric ( #3664 )
2019-04-06 21:57:01 -07:00
20aa4434e2
Fix repair ( #3581 )
...
Add DetachedHeads repair protocol
Add DetachedHeads repair test
Repair starting from root
2019-04-06 19:41:22 -07:00
03da63b41b
Revert "disable staking of blockstreamer node"
...
This reverts commit 42d8a7d9e7
.
2019-04-06 08:57:06 -07:00
878a842611
Move append_vec bench to the crate with append_vec ( #3650 )
...
* Move append_vec bench to the crate with append_vec
* Use black_box to tell the compiler not to optimize away test data
```
pub fn black_box<T>(dummy: T) -> T {
unsafe {
let ret = std::ptr::read_volatile(&dummy);
std::mem::forget(dummy);
ret
}
}
```
* Revert "Use black_box to tell the compiler not to optimize away test data"
This reverts commit 5610b8ee95
.
* Use black_box to tell the compiler not to optimize away test data
* Create bench directories
2019-04-06 07:18:56 -06:00
f3eda38b65
Fix broken lockout doubling
2019-04-05 23:15:46 -07:00
68e21911eb
Remove redundant transfer_signed
2019-04-05 22:04:32 -07:00
95cc36af96
Impl SyncClient and AsyncClient for ThinClient
2019-04-05 22:04:32 -07:00
d3c4e4f7b3
Update docs
2019-04-05 22:09:29 -06:00
4068612300
Remove RpcSignatureStatus
2019-04-05 22:09:29 -06:00
f349c1f0dc
Get everything off RpcSignatureStatus
2019-04-05 22:09:29 -06:00
90c1300bb6
Plumb TransactionError through Rpc
2019-04-05 22:09:29 -06:00
569a289a6f
Cargo.lock, serde_derive
2019-04-05 22:09:29 -06:00
89efe67e73
Fix the ordering of beta testnet zones
2019-04-05 17:53:31 -07:00
c3654b0f65
Add sdk benches to ci
...
And add `-a` to `tee` for more reliable copypasta.
2019-04-05 17:58:11 -06:00
f5f4434e0a
Remove unnecessary lock in sigverify
2019-04-05 16:57:45 -07:00
d30049b8eb
test for debit of TX fees on full process_transaction() ( #3643 )
...
* fix double debit of TX fees
* add test that fails when removing that line
* put that line back in
* comments
2019-04-05 16:55:58 -07:00
42d8a7d9e7
disable staking of blockstreamer node
...
- this will stop it from entering leader rotation schedule
2019-04-05 16:48:52 -07:00
adcda3c715
Remove airdrop dependency from replicators
2019-04-05 16:11:39 -07:00
a5b5248a09
move vote_accounts up ( #3647 )
2019-04-05 14:23:00 -07:00
3fcca5bc0a
Suppress shellcheck array expansion warnings
2019-04-05 13:25:14 -07:00
9d4c6f6aaa
Appease shellcheck
2019-04-05 13:25:14 -07:00
d570b08134
Clean up array expansion
2019-04-05 13:25:14 -07:00
8b6d7129f3
Fix option flag lettering
2019-04-05 13:25:14 -07:00
50444181c5
Fix arg array ordering and rename network-name option
2019-04-05 13:25:14 -07:00
0c51f156ae
Reverse order of zone arg array building
2019-04-05 13:25:14 -07:00
fe2fb40d88
Add multi-region deploy functionality
2019-04-05 13:25:14 -07:00
9ba0439593
Add multi-region deploy functionality
2019-04-05 13:25:14 -07:00
b33a1fa019
Fix clippy errors
2019-04-05 12:22:10 -07:00
63fd4222aa
Fix testnet sanity check for beta testnet
2019-04-05 12:22:10 -07:00
ef5df6f3fe
Add server specification
2019-04-05 11:44:57 -07:00
2f90f9fbd4
Version all jsonrpc crates, in core too
2019-04-05 11:44:57 -07:00
12b099ea78
Bump jsonrpc-core from 10.1.0 to 11.0.0
...
Bumps [jsonrpc-core](https://github.com/paritytech/jsonrpc ) from 10.1.0 to 11.0.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-05 11:44:57 -07:00
9f046a023e
move transaction_count up ( #3618 )
...
* move transaction_count up
* fixup
2019-04-05 10:42:25 -07:00
46e6911ec1
Add get_signature_status() to SyncClient
...
And move bank::Result to transaction module.
2019-04-05 10:22:05 -07:00
d3844ef32a
Add AsyncClient
2019-04-05 10:22:05 -07:00
4507dca342
Boot exchange_transaction. No tests depend on it.
2019-04-05 11:10:57 -06:00
c2fdd1362a
bump release version in testnet participation document
2019-04-05 08:30:42 -07:00
4ea19b90a4
Fix update_ancestor_stakes in locktower ( #3631 )
...
* Fix update_ancestor_stakes in locktower
* Add test for vote threshold
2019-04-05 03:05:31 -07:00
9cd555cad5
AWS script change for additional zones and regions
2019-04-04 15:59:59 -07:00
ed78c8d3bb
Fix beta testnet launch script
2019-04-04 15:16:01 -07:00
0b23af324b
Refactor Storage Program ( #3622 )
...
* Refactor Storage Program
* Replace KeyedAccount trait with StorageAccount struct
* Implement State for Account, not StorageAccount
* Make State trait more generic
* Move validation check into function
2019-04-04 12:01:09 -07:00
1598a02a7a
Wrap all client errors with TransportError
2019-04-04 12:00:19 -06:00
167f5bdc58
Add get_balance() and get_account_data() to SyncClient
...
Migrate tests to use them.
2019-04-04 12:00:19 -06:00
5cd7bccdf3
Add SyncClient and use from BankClient
2019-04-04 12:00:19 -06:00
acbc261891
Add gossip to build script, and fix bash strings
2019-04-04 00:18:48 -07:00
f97f0c4758
Bump serde_derive from 1.0.89 to 1.0.90
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.89 to 1.0.90.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-03 19:54:50 -07:00
e6ac5bc546
Bump serde from 1.0.89 to 1.0.90
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.89 to 1.0.90.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.89...v1.0.90 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-03 20:26:48 -06:00
ef1e5db0ee
Force delete all beta testnet nodes before restarting them
2019-04-03 17:58:54 -07:00
5cdfd79e96
Replace print with debug
2019-04-03 16:23:02 -07:00
b441bac7b2
Add separate Struct for Replicator submissions
2019-04-03 16:23:02 -07:00
00cb52c444
Update Storage Program to support multiple accounts
2019-04-03 16:23:02 -07:00
9323a3e257
Use keyed_account index names ( #3555 )
2019-04-03 15:57:26 -07:00
35298e01a8
Remove Instruction wrapper structs and name functions after enum fields
2019-04-03 13:34:27 -07:00
867f6f107b
Rename SystemInstruction::Move to SystemInstruction::Transfer
2019-04-03 08:35:57 -06:00
43bb813cbe
Rename 'new_account' to 'new_user_account'
...
And 'new_program_account' to 'new_account'
2019-04-02 21:24:42 -06:00
7b82e96467
Bump libc from 0.2.50 to 0.2.51 ( #3554 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.50 to 0.2.51.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.50...0.2.51 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-02 20:32:35 -05:00
978ff87b76
Fix potential storage bug
...
The previous code was assuming the instruction index and the
program_id index were the same. That's always true for
single-instruction transactions, but not for multiples.
2019-04-02 19:00:35 -06:00
4c0bc1fd88
Add program_ids() methods
...
Added CompiledInstruction::program_id() so that we don't need to pass
around instruction indexes just for Message::program_id().
Also added Message.program_ids() that returns a slice so that we
can move those pubkeys into Message::account_keys.
2019-04-02 19:00:35 -06:00
025b4f90de
Pre-populate tokens ( #3605 )
2019-04-02 16:50:53 -07:00
20189c5d45
Bump hashbrown to 0.2.0
2019-04-02 16:37:21 -06:00
2e4acba579
Remove second block streamer from testnet beta
2019-04-02 15:15:11 -07:00
d90b8c331d
Refactor blocktree storage abstraction ( #3588 )
2019-04-02 16:58:07 -05:00
efbb49d579
Don't use external node ssh key if one is not configured
2019-04-02 14:20:00 -07:00
f0079cd7b3
Bump hashbrown from 0.1.8 to 0.2.0
...
Bumps [hashbrown](https://github.com/Amanieu/hashbrown ) from 0.1.8 to 0.2.0.
- [Release notes](https://github.com/Amanieu/hashbrown/releases )
- [Changelog](https://github.com/Amanieu/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/hashbrown/compare/v0.1.8...v0.2.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-02 13:45:49 -06:00
a0041cec97
Rename Runtime to MessageProcessor
2019-04-02 12:49:26 -06:00
77bb9e7ffc
Fix the release number in testnet participation document
2019-04-02 11:26:54 -07:00
f441177840
Deploy beta testnet with 100 nodes across AWS and GCP
2019-04-02 11:21:57 -07:00
cd634801a2
Re-enable test but remove replicators from config
2019-04-02 10:38:30 -07:00
5f10a87dec
Ignore Flaky Local Cluster test
2019-04-02 10:56:29 -06:00
fa1c1e3734
Rename native programs to native instruction processors
2019-04-02 10:36:19 -06:00
947cdd8748
Rename system_program to system_instrution_processor
2019-04-02 10:36:19 -06:00
0a9f063d3e
Rename native_program.rs to instruction_processor_utils.rs
...
Prefer the term "instruction processor" over "program". Reserve
the term "native" for the loader and shared object it loads.
Compiling an instruction processor to BPF shouldn't imply changing
to a non-native entrypoint.
2019-04-02 10:36:19 -06:00
dd4c512954
Rename Wallet's id to keypair
2019-04-02 07:38:28 -06:00
d228b6467c
Implement finalizer so that all locked accounts are dropped ( #3585 )
...
* Implement finalizer so that all locked accounts are dropped when finalizer goes out of scope
* Add test for tx error with lock conflict
* Fix double unlock from destructor running after a call to unlock
2019-04-02 03:55:42 -07:00
92c66a411b
Remove bench-tps converge-only
2019-04-01 23:05:25 -06:00
af97ad3d68
Add solana-gossip module
2019-04-01 23:05:25 -06:00
6ff2a0a75e
Rework discover to handle additional parameters, and be unit-testable
2019-04-01 23:05:25 -06:00
5b7d5e2e02
Bump reqwest from 0.9.12 to 0.9.13
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.12 to 0.9.13.
- [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.9.12...v0.9.13 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-04-01 20:34:08 -06:00
97bd7a00f1
Support for configuring testnet nodes across multiple cloud services
2019-04-01 17:11:41 -07:00
25a2f08f8d
add passive staking and rewards ( #3579 )
...
* add stake stuff
* more generic
* test decode bail cases
* favor early returns
2019-04-01 16:45:53 -07:00
3152090a66
update with review comments
2019-04-01 15:54:53 -06:00
9a0f9b910e
add bench tests for squash operations
2019-04-01 15:54:53 -06:00
f853c39169
remove unused member
2019-04-01 15:54:53 -06:00
75ad1305c0
Cache vote accounts and optimize squash
2019-04-01 15:54:53 -06:00
cb3adea94f
Increase node count in beta testnet
2019-04-01 11:06:24 -07:00
fcef54d062
Add a constructor to generate random pubkeys
2019-03-31 16:23:18 -06:00
32683cac7c
Move markdown into book
2019-03-31 16:23:06 -06:00
15947b8642
Congestion stats, take 3
2019-03-31 16:23:06 -06:00
4e0316f792
Apply review feedback
2019-03-31 16:23:06 -06:00
9594b7fdce
Use stake-weighted congestion statistics
2019-03-31 16:23:06 -06:00
1adf8355f2
Add design proposal for deterministic transaction fees
2019-03-31 16:23:06 -06:00
8660c3581e
Add squashing metrics ( #3573 )
2019-03-29 21:21:59 -07:00
f886b3b12b
Fix resetting PohRecorder to wrong bank ( #3553 )
...
* Check whether future slot already has transmission
2019-03-29 20:00:36 -07:00
5646daa820
Delete lots of fee parameters
...
So many zeros!
2019-03-29 19:21:51 -06:00
7896e8288d
Replace Transaction::fee with a FeeCalculator
2019-03-29 19:21:51 -06:00
9369ea86ea
Track detached slots in blocktree ( #3536 )
...
* Add contains_all_parents flag to SlotMeta to prep for tracking detached heads
* Add new DetachedHeads column family
* Remove has_complete_parents
* Fix test
2019-03-29 16:07:24 -07:00
dee5ede16d
Get rid of unnecessary frozen banks ( #3572 )
2019-03-29 16:06:48 -07:00
3b516c0710
Fix build
2019-03-29 14:56:29 -06:00
0887832b00
Early exit if buffered packets is empty
2019-03-29 13:40:07 -07:00
8e04fadb05
Cleanup magic numbers
...
Rename `num_signatures` to `num_required_signatures` to
disambiguate it from `tx.signatures.len()`.
2019-03-29 13:03:29 -07:00
31f8b6d352
Integrate Message into Transaction
2019-03-29 13:03:29 -07:00
98d60e6124
Expose a method for getting the Message from a Transaction
...
This currently constructs the message, but when message
is integrated, it can return a `&Message`.
2019-03-29 13:03:29 -07:00
fc678f53ba
Send metrics data to the correct/configured database host
2019-03-29 12:14:15 -07:00
8e25c39564
fix formatting of numbered list
2019-03-29 11:46:21 -07:00
78ab79c322
fix build failure
2019-03-29 11:46:21 -07:00
052fc9b74f
Information on how to debug testnet issues
2019-03-29 11:46:21 -07:00
f482c9ab61
Functionalize tx serialization; make testing more explicit
2019-03-29 11:31:46 -06:00
75dcd97f5f
Update test to deserialize txs
2019-03-29 11:31:46 -06:00
4776dc36ab
Map entry txs to serialized txs in blockstream
2019-03-29 11:31:46 -06:00
10239c3b3c
Replace recursive status cache with a single global fast status cache ( #3541 )
...
Fast Status Cache
2019-03-29 10:03:55 -07:00
753d0dcabe
Fix the cuda build
...
And add a test to check the condition that the cuda tests are
exercising.
2019-03-29 08:25:56 -06:00
b708998d9d
Fix chacha build
2019-03-29 08:25:56 -06:00
3759b0d2a5
Fix Blockstreamer test
2019-03-29 08:25:56 -06:00
c4bc710d3a
Use Serde's with
attribute to shorten length encodings in Transaction
2019-03-29 08:25:56 -06:00
857dc2ba47
Remove custom serialization
2019-03-29 08:25:56 -06:00
981e057363
Just test features in core
2019-03-28 21:40:52 -07:00
37494c67d0
Add pubkey read/write tools
...
Co-authored-by: Tyera Eulberg <tyera@solana.com >
Co-authored-by: Tristan Debrunner <tristan@solana.com >
2019-03-28 20:04:32 -06:00
7a81f327ce
Add sigverify tests
2019-03-28 19:42:11 -06:00
845ddc3496
Fixup wallet-sanity to match new balance string
2019-03-28 16:56:27 -07:00
c61bb16fdf
Fix manifest path for cargo commands ( #3549 )
2019-03-28 15:56:08 -07:00
15b945a652
Fix EC2 scripts for blockstream startup
2019-03-28 15:37:23 -07:00
1d48c4dd45
enable leader rotation in beta testnet
2019-03-28 13:44:44 -07:00
2ab50cbae8
Move untested code out of SDK
...
verify_signature() was only used in a test that was testing
binary layout. It only worked because the test transaction only
had one signature.
from() was only used by verify_signature() and that's something
we'd typically called `pubkey()`.
hash() didn't return the hash of the Transaction, as you might
guess. It's only used for PoH, so move it into Entry.
2019-03-28 14:24:59 -06:00
0482f153d0
Lower a bunch of debug
...
Can't afford to be printing on every transaction error, it will slow
the system down.
2019-03-28 12:24:47 -07:00
92e1c4c531
Report which account is in use ( #3539 )
2019-03-28 08:17:49 -07:00
4bca60861e
Specialize GenericInstruction
2019-03-28 05:45:46 -06:00
50b0a5ae83
Blocktree+Erasure tests of basic erasure functionality ( #3535 )
...
* Remove WindowSlot; add Blocktree based tests to erasure
2019-03-28 01:55:51 -05:00
c30eb6185c
Enable logging in exchange program ( #3538 )
2019-03-27 23:02:05 -07:00
a94bc80383
fix clippy errors
2019-03-27 18:05:17 -07:00
586b6fc3d7
review comments
2019-03-27 18:05:17 -07:00
a14c202d60
fix the ip address that's stored in the config file
2019-03-27 18:05:17 -07:00
ed48c495a3
fix shell-check errors
2019-03-27 18:05:17 -07:00
f0abd06a46
Added support for multi-region cloud testnet
2019-03-27 18:05:17 -07:00
7d0ff8e713
Re-enable Replicator test ( #3534 )
2019-03-27 17:21:49 -07:00
e8cc566b2b
Storage Account setup for replicators and validators ( #3516 )
...
* Setup Storage Accounts for replicators
* Setup Storage Accounts for validators
* Add Replicator Info to Local Cluster and Add test
2019-03-27 15:54:09 -07:00
e45f7afd85
use the right id for delegate id
2019-03-27 15:04:09 -07:00
054ae3a3e3
Document current transaction size awkwardness
2019-03-27 14:27:20 -06:00
36ea088387
Fix Storage Stage not receiving entries when node is leader ( #3528 )
2019-03-27 13:10:33 -07:00
47b6707c07
Don't use a loader to test Storage instruction processor
2019-03-27 11:02:41 -06:00
0346b9cb5c
hang out on progress until fork is confirmed
2019-03-27 08:41:41 -07:00
6bfe497ab5
remove leader confirmaiton
2019-03-27 08:41:41 -07:00
6956bf635e
validator confirmaiton
2019-03-27 08:41:41 -07:00
e27d6d0988
validator confirmation
2019-03-27 08:41:41 -07:00
3fc09fb23f
Remove keypairs from BankClient
...
Bring its interface closer to the other clients.
2019-03-27 09:37:19 -06:00
cecdb7061e
Remove blockhash parameter from Bank::transfer
...
That parameter is an artifact from the Loom days, when I thought
Bank should implement the same interace as ThinClient.
2019-03-27 08:51:10 -06:00
0ac865f08c
Remove BankClient::process_instructions
2019-03-27 08:51:10 -06:00
55115d0eeb
Add process_message() to BankClient
2019-03-27 08:51:10 -06:00
16ff4ac1a8
Simplify storage interface in blocktree ( #3522 )
2019-03-27 01:36:39 -05:00
5ce31168ef
Remove Transaction::new_signed
2019-03-26 19:51:16 -07:00
b9ff70c8ab
pub Transaction::new_unsigned
...
Offer an incremental path off Transaction::new_unsigned_instructions().
2019-03-26 20:06:05 -06:00
77498c6efe
Expose Message via the new default Transaction constructor
2019-03-26 20:06:05 -06:00
8c69c40834
Make space for a new Transaction::new
2019-03-26 20:06:05 -06:00
d497b99abb
use solana_entrypoint directly ( #3518 )
2019-03-26 16:40:34 -07:00
ca2ac1e5ea
Remove a mostly unused Transaction constructor
2019-03-26 15:46:58 -07:00
c09e0eb536
propagate TESTNET_DB_HOST env variable to next step in buildkite
2019-03-26 14:40:18 -07:00
0d90dfae1a
Add provisions to specify a database server in testnet manager buildkite
2019-03-26 14:40:18 -07:00
bf61321cab
fix metrics
2019-03-26 14:30:25 -07:00
591653981b
fix metrics
2019-03-26 14:30:25 -07:00
e651510805
Instructions on how to boot metrics server
2019-03-26 14:02:41 -07:00
9d73fbb84a
also check the delegate_id
2019-03-26 12:03:22 -07:00
215b07c1a9
remove status_cache.freeze ( #3506 )
2019-03-26 11:56:25 -07:00
420cbc45cd
Record the current nodes locktower votes from the bank ( #3502 )
...
* observed_locktower_stats
* fixup! observed_locktower_stats
2019-03-26 11:06:31 -07:00
df333e8b6e
Move new_move_many to SystemInstruction
2019-03-26 09:22:29 -07:00
9759ac2961
Mark book's javascript library as binary
...
highlight.js has a big dictionary of words. When git-grep includes
one of those words, it floods the screen with the whole dictionary.
Mark it as binary so that it'll now just report one line:
Binary file book/theme/highlight.js matches
2019-03-26 07:39:34 -07:00
af9b173dfd
fix link
2019-03-26 05:43:02 -07:00
b61aed7250
Minor cleanup
2019-03-25 20:31:13 -07:00
e1c0425c2b
Remove rewards crate from publishing script
2019-03-25 20:19:58 -07:00
615472b52c
Initailize locktower with heaviest bank ( #3489 )
2019-03-25 20:00:11 -07:00
4d34102d9c
Move stragglers into the book
...
The stuff added between the time we switched to proposals/ and the git-revert
2019-03-25 19:39:22 -07:00
3e22ce4154
Added stats for locktower in testnet dashboard
2019-03-25 18:49:15 -07:00
215f33680b
Fix the filename in testnet pariticpation instructions
2019-03-25 17:33:41 -07:00
a5420f19da
Update testnet-participation.md
...
add instructions for finding metrics
2019-03-25 17:12:00 -07:00
4bc3f70150
Boot VoteTransaction
2019-03-25 17:11:57 -07:00
e8814b1297
Add support for influx cloud
2019-03-25 17:10:38 -07:00
46ab0e6449
Update testnet-participation.md
...
multinode-demo/validator-x.sh uses cargo run unless USE_INSTALL==1
2019-03-25 16:30:56 -07:00
59b4f40f4e
fixup! fixup! keep track of locktower slots and stakes
2019-03-25 16:05:28 -07:00
93c57934cb
fixup! keep track of locktower slots and stakes
2019-03-25 16:05:28 -07:00
e8e1d6b8ce
keep track of locktower slots and stakes
2019-03-25 16:05:28 -07:00
4916cd8da5
bench-tps in a cargo test
2019-03-25 15:05:56 -07:00
573dec63da
Fix runtime benches
2019-03-25 14:32:01 -06:00
34c051f183
add hash_fromstr ( #3476 )
2019-03-25 12:23:19 -07:00
51004881f8
filter out banks that have an older epoch ( #3472 )
2019-03-25 11:09:39 -07:00
5c536e423c
Inline InstructionCompiler
...
The object-oriented paradigm isn't helpful here; go functional.
2019-03-25 12:08:27 -06:00
4efa144916
Generate a Message instead of a Transaction
2019-03-25 12:08:27 -06:00
f3936c21a3
Add message
2019-03-25 12:08:27 -06:00
caff603497
Less code
2019-03-24 21:44:04 -07:00
aefa9891c0
Delete unused code
2019-03-24 21:44:04 -07:00
6286947697
Inline payment_plan
...
This module predates Accounts. That was a separate module because
it used to be part of Bank and those types could be sent to any
smart contract. Now each instruction processor defines for itself
what instructions it accepts.
2019-03-24 14:52:06 -06:00
33972ef89e
Boot BudgetTransaction
2019-03-24 14:52:06 -06:00
b53cbdd9e6
Punt on the Script abstraction
...
Low ROI
2019-03-24 14:52:06 -06:00
c49e84c75b
Boot StorageTransaction
2019-03-24 13:51:02 -07:00
dcf2337e58
Add StorageInstruction constructors
2019-03-24 13:51:02 -07:00
5a65c3f72e
Test-drive StorageContract
2019-03-24 13:51:02 -07:00
8ff1987d2d
Reorg Storage program to look more like the others
2019-03-24 13:51:02 -07:00
acedf4ca5a
Move Instruction into its own module
2019-03-23 20:31:55 -07:00
68c35bfde6
Restart node test ( #3459 ) ( #3465 )
...
* Restart node test (#3459 )
* Add test to local_cluster for restarting a node
* fix so that we don't hit end of epoch - leader not found before trying to transfer
* Do not look for confirmations, b/c nobody is voting on empty transmissions in this single node test
2019-03-23 19:19:55 -07:00
e1a3708844
Ensure accounts are unlocked ( #3458 )
2019-03-23 13:30:56 -07:00
46ecac3310
Update leader slot in poh recorder if we skipped it ( #3452 )
...
* reset poh recorder with the original start slot
2019-03-23 13:07:09 -07:00
028b9da0da
Revert "Move the design proposals to a separate book"
...
This reverts commit 4ca18d6b9a
.
2019-03-23 14:04:34 -06:00
74cea2748c
Revert "Publish design proposals"
...
This reverts commit fb44e2bf48
.
2019-03-23 14:04:34 -06:00
a478b2a05a
Bump assert_cmd from 0.11.0 to 0.11.1
...
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd ) from 0.11.0 to 0.11.1.
- [Release notes](https://github.com/assert-rs/assert_cmd/releases )
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v0.11.0...v0.11.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-03-23 13:18:51 -06:00
41a52dbfea
Document solana-install-init.sh
2019-03-23 09:01:08 -07:00
4923f889c4
Add trick to ensure the entire script is downloaded
2019-03-23 09:01:08 -07:00
31b8743052
delay freeze of status_cache until squash ( #3453 )
2019-03-22 22:14:56 -07:00
6505221629
Add exchange program ( #3444 )
2019-03-22 21:07:36 -07:00
de2b6bc9fc
Bump tokio from 0.1.17 to 0.1.18
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 0.1.17 to 0.1.18.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-0.1.17...tokio-0.1.18 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-03-22 19:54:18 -06:00
f565292852
Update testnet-participation.md
2019-03-22 17:58:58 -07:00
90f17e8fd4
Update testnet-participation.md
2019-03-22 17:18:27 -07:00
d6da7dc1b6
Initial testnet participation doc
2019-03-22 17:11:47 -07:00
7e2aad2590
Refrain from trying to configure a staking account that was previously configured
2019-03-22 17:00:09 -07:00
f09b8d3921
Demote log level
2019-03-22 17:00:09 -07:00
52f6c33ff9
Make sure banking stage is recording with the same bank that it read ( #3447 )
...
* make sure banking stage is recording with the same bank that it read with
2019-03-22 14:17:39 -07:00
60dfb35924
Why do I need to see raw bytes from the drone?
2019-03-22 14:07:44 -07:00
5f41909098
Stop using VoteTransaction in Vote processor
2019-03-22 14:07:00 -06:00
a28f7db950
Retry more for a new blockhash
2019-03-22 11:14:03 -07:00
38fdbbba3f
Reduce remaining program crates to boilerplate crates
2019-03-22 06:46:44 -07:00
0a5b6154e8
Use same gossip port for all testnet nodes
2019-03-22 00:16:58 -07:00
4542a7042a
Add --poll-for-new-genesis-block flag
2019-03-22 00:15:19 -07:00
6113b64fee
Include multinode-demo scripts in release tarball
2019-03-21 22:09:44 -07:00
f777ed76a3
Use installed binaries if not within the cargo workspace
2019-03-21 22:09:44 -07:00
e6b9babf53
Run a drone on blockstreamer nodes
2019-03-21 22:09:44 -07:00
ed8bada439
Kill all node processes (blockexplorer)
2019-03-21 22:09:44 -07:00
06b0c98c75
Remove accounts when the fork is removed ( #3384 )
...
* Fix test
* Cleanup accounts when the fork is removed
* Update test to check for deleted accounts
2019-03-21 17:36:10 -07:00
dbb145c266
Fixup ledger path
2019-03-21 17:06:57 -07:00
437481853b
Ensure genesis ledger directory is populated on all validator nodes
...
This allows all nodes to serve the genesis ledger over rsync instead of
just the bootstrap leader
2019-03-21 16:35:40 -07:00
3b5a9f512c
Get client-id.json out of the genesis ledger directory
2019-03-21 16:35:40 -07:00
045af04784
Reduce budget_program and config_program into boilerplate crates
2019-03-21 16:53:08 -06:00
d0761f57e8
Add _program suffix to directories of crates with _program suffix
2019-03-21 16:24:06 -06:00
4bb88619fd
Move entrypoint boilerplate into a macro
2019-03-21 15:27:49 -06:00
412ebfcaf2
ReplayStage::new is too long
...
break into more functions
2019-03-21 14:08:11 -07:00
3a7647f611
Add curl-able install script
2019-03-21 13:45:54 -07:00
d4cc48f99d
Check from account balance and exit cleanly if 0
2019-03-21 13:00:46 -07:00
852fcbd700
Automatically update PATH for the user
2019-03-21 13:00:46 -07:00
8ab4b8e6ac
Support local networks for easy testing
2019-03-21 13:00:46 -07:00
a8095e204f
Cleanup SystemTransaction
2019-03-21 12:41:39 -07:00
98979c7d53
Cargo.lock
2019-03-21 11:24:10 -07:00
c18fcde385
Move installer to the implemented section
2019-03-21 11:24:10 -07:00
f286bbac99
Initial commands implementation
2019-03-21 11:24:10 -07:00
4e029d81a2
Setup staking
2019-03-21 11:12:35 -07:00
2b00a42b06
Boot Rewards program
2019-03-21 12:07:20 -06:00
07d55d0092
Downgrade 'No next leader found' to warning
2019-03-21 11:18:49 -06:00
fb44e2bf48
Publish design proposals
2019-03-21 10:54:59 -06:00
9b0bf5ad66
Add tests for table mappers; Bugfix on-disk mapper ( #3408 )
...
add tests to `kvstore::mapper::{disk, memory}` modules
fix bug in disk mapper uncovered by tests
use `tempdir` crate for unit test-directories
2019-03-21 11:38:29 -05:00
4247fa946e
Add solana-wallet balance <PUBKEY>
2019-03-21 09:51:27 -06:00
071b1d8b77
Cargo.lock
2019-03-21 08:47:58 -07:00
63aadc4905
Turn top-level Cargo.toml into a virtual manifest
2019-03-21 08:47:58 -07:00
d2415613de
Migrate loader tests to BankClient
2019-03-21 09:19:24 -06:00
58f071b7a0
Migrate loader to high-level instructions
2019-03-21 09:19:24 -06:00
148e08a8a5
Enable cluster tests ( #3372 )
...
* Cluster tests
* stable!
* fixup! stable!
* fixup! fixup! stable!
* fixup! fixup! fixup! stable!
* fixup! fixup! fixup! fixup! stable!
* fixed space
* add getNumBlocksSinceSignatureConfirmation entry for the json rpc docs
* Check in upcoming epochs for potential leadership slots in next_leader_slot()
2019-03-21 07:43:21 -07:00
402a733cd7
Upload tarball as a github release asset
2019-03-20 21:39:35 -07:00
78be3652de
Add script to upload github release assets
2019-03-20 21:39:35 -07:00
b03d9884a3
Ensure current crate versions match the tag before publishing to crates.io
2019-03-20 20:51:58 -07:00
799085a105
Remove dead code
2019-03-20 20:51:58 -07:00
7812b67471
deduplicate some test code ( #3401 )
2019-03-20 19:35:25 -05:00
4033fa031b
Add convenience script for testnet deployments
2019-03-20 16:57:55 -07:00
b41737259a
Add GITHUB_TOKEN
2019-03-20 16:57:55 -07:00
7c8a4bf6a4
use ticks per slot to check if the current tick is in the leader slot
2019-03-20 16:55:01 -07:00
71314d79a7
address review comments
2019-03-20 16:55:01 -07:00
d7ff6645a9
change pubkey to ref
2019-03-20 16:55:01 -07:00
1824e09d0a
find next leader slot before resetting working bank in Poh recorder
2019-03-20 16:55:01 -07:00
205907d3d7
Check if poh recorder has over stepped the leader slot
2019-03-20 16:55:01 -07:00
d4bcc4d474
🐳
2019-03-20 16:21:47 -07:00
bcb190a12a
Remove erroneous comment
2019-03-20 16:15:25 -07:00
63e8496473
Cleanup pubkey parsing copypasta
2019-03-20 16:08:03 -07:00
4107d70e93
Bump reqwest from 0.9.11 to 0.9.12
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.11 to 0.9.12.
- [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[bot] <support@dependabot.com >
2019-03-20 16:26:31 -06:00
4fb0782892
Rename blocktree SlotMeta::is_rooted to is_connected
...
is_rooted is now is_connected and (still) indicates the set of connected
completed slots. 'rooted' slot terminology is used for a different
meaning in bank_forks and replay_stage.
2019-03-20 14:43:39 -07:00
9b7c1d5650
Relocate *-help.sh to their respective packages
2019-03-20 14:34:57 -07:00
985592cf40
Fix cp args
2019-03-20 14:29:30 -07:00
2694654a98
Change fixed 8050 port to one from bind_in_range.
2019-03-20 14:17:21 -07:00
4126461f87
Fix dupe port on cluster_info
...
and remove unintended grow file
2019-03-20 14:17:21 -07:00
791ead6053
Include TARGET in release URL to make room for future targets
2019-03-20 13:54:32 -07:00
3048de18bb
add doc that should have been copy-pasta'd from bench ( #3389 )
2019-03-20 11:10:42 -07:00
df9fd2bc0b
stop copying Blooms ( #3379 )
...
* stop copying Blooms
* fixup
* clippy
2019-03-20 11:06:39 -07:00
13c9d3d4e1
Kvstore: use bincode serialization ( #3385 )
...
* use bincode for SSTable serialization; add tests
* Fix bug uncovered in merge algorithm by unit tests
* use bincode in write-ahead-log serialization
* Add helper `Fill` trait for zeroing buffers
2019-03-20 09:55:44 -05:00
0dc364c17a
Relocate transaction reference verification to join the other validity checks
2019-03-20 07:46:01 -07:00
b3cdf58e4b
Add WriteBatch to KvStore ( #3364 )
...
* implement write-batch in kvstore
* Add tests to writebatch, and in-memory table
2019-03-20 06:55:39 -05:00
61f950a60c
Sign Gossip Vote Messages
2019-03-19 19:56:17 -07:00
da77789881
Revert "Drop 'unchecked' from get_subset_mut()"
...
This reverts commit 70b21b3795
.
2019-03-19 17:52:02 -07:00
61af87972e
allow empty ancestors
2019-03-19 17:51:01 -07:00
fe9e771b9b
Clear progress map on squash ( #3377 )
2019-03-19 17:30:36 -07:00
94b5835738
Make AccountMeta a traditional struct instead of a tuple struct
2019-03-19 17:22:39 -06:00
a4652a9aaf
Label tuple with AccountMeta
2019-03-19 17:22:39 -06:00
7246d72f03
fix is_locked_out logic
2019-03-19 16:21:46 -07:00
70b21b3795
Drop 'unchecked' from get_subset_mut()
2019-03-19 16:12:53 -07:00
682b1b89b3
Adjust for vector of entries in blobs.
2019-03-19 13:49:48 -07:00
f1802e592a
Review comments: node creation functions for replicators
...
And rework download loop.
2019-03-19 13:49:48 -07:00
ee58c1f960
Add test for replicator ledger download
...
Add an interface to query the storage slot a
replicator is holding on storage_addr port.
Fix logic to poll blocktree for all slots
replicated being filled.
Add test logic to ask replicator what slot it
is replicating and then download an entry in
the slot.
2019-03-19 13:49:48 -07:00
07f4dd385d
Cleanup replicator sockets
...
Add optional UdpSocket for storage interface.
Add new_localhost_replicator to create a new replicator local node.
2019-03-19 13:49:48 -07:00
1be7ee51be
Fix potential crash in banking stage
2019-03-19 12:06:42 -07:00
56fcc93ef5
Schedule node for consecutive slots as leader ( #3353 )
...
* Also tweak epoch and slot duration
* new test for leader schedule
2019-03-19 06:36:45 -07:00
c70412d7bb
move core tests to core ( #3355 )
...
* move core tests to core
* remove window
* fix up flaky tests
* test_entryfication needs a singly-threaded banking_stage
* move core benches to core
* remove unnecessary dependencies
* remove core as a member for now, test it like runtime
* stop running tests twice
* remove duplicate runs of tests in perf
2019-03-18 22:08:21 -07:00
5e21268ca0
PR comments
2019-03-18 20:46:11 -07:00
b38e3bef01
Modify bank_forks to support squashing/filtering new root and also don't remove parents from bank_forks when inserting, otherwise we lose potential fork points when querying blocktree for child slots
2019-03-18 20:46:11 -07:00
89cc82c71b
Update cli interface
2019-03-18 18:34:08 -07:00
1d0f6a5d85
Add scripts/install-help.sh
2019-03-18 18:34:08 -07:00
d0292b1cf1
store transaction no longer takes the transaction fee from the config account
2019-03-18 18:34:08 -07:00
15aed9f320
Self
2019-03-18 18:34:08 -07:00
5a67362b8e
update passive staking proposal ( #3335 )
...
* update passive staking proposal
* fixup
2019-03-18 18:25:29 -07:00
5d73ab299b
Clean up locks in KvStore ( #3358 )
...
* Lift all shared mutable state into Kvstore
commit is now an AtomicUsize
In-memory table and write-log are now struct members behind individual RwLocks
2019-03-18 19:04:31 -05:00
ef111dcbe1
Decendent is not a word
2019-03-18 15:58:27 -07:00
da7e49c880
Fix broken build
...
- build breaks if Cuda feature is used
2019-03-18 15:29:51 -07:00
f16f88873d
Add multiple signer support to BankClient
2019-03-18 16:07:45 -06:00
211c81f2a2
bank fork rpc ( #3351 )
2019-03-18 14:18:43 -07:00
efc39ffdde
Report how many grace ticks were afforded to previous leader ( #3350 )
2019-03-18 13:24:07 -07:00
61a4b998fa
Implement locktower voting ( #3251 )
...
* locktower components and tests
* integrate locktower into replay stage
* track locktower duration
* make sure threshold is checked after simulating the vote
* check vote lockouts using the VoteState program
* duplicate vote test
* epoch stakes
* disable impossible to verify tests
2019-03-18 12:12:33 -07:00
cedff2fca1
Cleanup sockets test
2019-03-18 11:56:18 -07:00
8d032aba9d
Merge InstructionError and ProgramError
...
From the user's perspective, it's just an instruction error.
For program-specific errors, we still have
InstructionError::CustomError.
2019-03-18 10:39:20 -06:00
607b368fe3
Add back in test to check the account program id
2019-03-18 08:22:54 -07:00
a54854abc7
Do Budget verification in BudgetScript
2019-03-18 08:22:54 -07:00
ce6257a069
Delete misplaced unit-tests
...
These tests were from back in the day when Bank(then-called Accountant)
would call `verify_plan()` on all transactions. Nowadays `verify_plan`
is only useful to the client. At can be used to ensure a transaction
won't trigger runtime errors.
2019-03-18 08:22:54 -07:00
7b28d3a231
Move Budget's verify_plan() into tests
...
This functionality is supposed to be the the interpreter
2019-03-18 08:22:54 -07:00
ea01ff2aab
Add pubkey to BudgetExpr::new_cancelable_future_payment for wallet
2019-03-18 08:22:54 -07:00
3369019943
Add BudgetExpr::new_cancelable_authorized_payment
2019-03-18 08:22:54 -07:00
dbd4176b97
Move script constructors into a separate module
2019-03-18 08:22:54 -07:00
122c7bc2ef
Rename TransactionCompiler to Script and use it to replace the type alias
2019-03-18 08:22:54 -07:00
99671472d1
Migrate config tests to Bank
2019-03-18 08:22:54 -07:00
0c0716abfb
Move Bank-based tests into unit-tests
2019-03-18 08:22:54 -07:00
c09accb685
Rename StaticEntrypoint to ProcessInstruction
2019-03-18 08:22:54 -07:00
ae4d14a2ad
Introducing Scripts
...
A sequence of instructions. A client compiles the script and then uses
the compiled script to construction a transaction. Then it adds a
adds a blockhash, signs the transaction, and sends it off for
processing.
2019-03-18 08:22:54 -07:00
55cdbedb52
Allow tests to add instruction processors
...
Make runtime a private module again.
2019-03-18 08:22:54 -07:00
ee39f31d81
Add Runtime object. Allow any number of static loaders.
2019-03-18 08:22:54 -07:00
70b45de012
Get access to runtime errors in Budget unit-tests
2019-03-18 08:22:54 -07:00
60437a8dcb
Multiple entries per blob ( #3337 )
...
* Pack multiple entries into blob
* fix tests
* Add test for deserializing multi-entry blobs in blocktree
* more test fixes
2019-03-17 18:48:23 -07:00
a35ebe1186
Avoid RpcRequest
2019-03-17 01:34:58 -07:00
c498775a3d
Move generic rpc_client functions from wallet/ to client/
2019-03-17 01:34:58 -07:00
3ad019a176
Increment stable timeout
2019-03-16 23:56:35 -07:00
9632136cda
Clean up stray retry_get_balance() function
2019-03-16 23:56:35 -07:00
42cea7a785
Remove metrics dependency
2019-03-16 23:56:35 -07:00
4c9d852b08
Remove ThinClient::transfer()
2019-03-16 23:56:35 -07:00
9566a5cc68
Organize accounts on a per fork basis ( #3336 )
...
* Organize accounts by fork
* Keep track of vote accounts in account info
* update comments
2019-03-16 23:42:32 -07:00
ac03c59b41
client/: get_transaction_count() now returns a Result
2019-03-16 23:27:23 -07:00
73ceaf07b1
client/: move RpcClient from rpc_request.rs to rpc_client.rs
2019-03-16 23:27:23 -07:00
7b314f47f7
Factor RPC request mechanism out of RpcClient into *RpcClientRequest
2019-03-16 23:27:23 -07:00
23337e08eb
client/: Merge client.rs into thin_client.rs
2019-03-16 22:48:26 -07:00
97e73311c5
Move mock request_airdrop_transaction into drone/, closer to the real impl
2019-03-16 22:14:09 -07:00
e2c24481e4
wallet/ now only dev-depends on core/
2019-03-16 21:40:39 -07:00
ad252fe4c5
Remove unnecessary Option from get_account_data
2019-03-16 11:32:01 -07:00
4b04bc8612
Move thin_client RPC requests into rpc_request; de-mut thin_client
2019-03-16 11:32:01 -07:00
bcc34b906c
Relieve the caller of having to care about the rpc request id
2019-03-16 11:32:01 -07:00
c2b1010f18
Clarify url vs addr
2019-03-16 11:32:01 -07:00
e3ef4f25d3
Update Dockerfile
...
install mscgen (for book art)
2019-03-15 20:44:35 -07:00
ad12b0efce
Bump kvstore version to 0.13.0 to match all other solana crates ( #3334 )
2019-03-15 19:05:24 -05:00
00f005af25
Fix leader rotation counter
2019-03-15 17:01:18 -07:00
656fb173f9
Extract kvstore into separate crate ( #3327 )
...
* extract kvstore into new crate
* add kvstore crate to CI publishing list
2019-03-15 18:42:47 -05:00
5f58e9cd6e
Config program - useful for storing/updating simple config items on chain
2019-03-15 16:39:45 -07:00
1d876df8b3
Add command plumbing
2019-03-15 16:30:31 -07:00
c8bbca08f8
Install the install program
2019-03-15 16:30:31 -07:00
971da7325d
Reduce log level for periodic debug messages
2019-03-15 15:41:26 -07:00
ca4f874f52
Remove ci/run-local.sh
2019-03-15 15:09:25 -07:00
a88b36d718
Rename TransactionBuilder to TransactionCompiler
2019-03-15 14:46:44 -06:00
24d9138067
Abandon Builder pattern
2019-03-15 14:46:44 -06:00
aca739b800
Boot fees from TransactionBuilder
2019-03-15 14:46:44 -06:00
e091aa87ea
More precise constructor names
2019-03-15 14:46:44 -06:00
968022a1b0
Instruction name swap
...
* Instruction -> GenericInstruction
* Instruction<u8, u8> -> CompiledInstruction
* Instruction<Pubkey, (Pubkey, bool)> -> Instruction
2019-03-15 14:46:44 -06:00
66fb1bbb2e
Give last leader some grace ticks to catch up ( #3299 )
...
* Wait for last leader for some ticks
* New tests and fixed existing tests
2019-03-15 13:22:16 -07:00
fa3e1fa7c9
Add error correction to write-log ( #3323 )
2019-03-15 15:04:34 -05:00
36763d0802
Cleanup entry.rs packing code ( #3303 )
2019-03-15 12:48:32 -07:00
be5f800390
Use the Mining Proof's Signature as storage keys ( #3321 )
2019-03-15 11:44:10 -07:00
ca69b7b75b
Add CRC Reader and Writer I/O wrappers ( #3322 )
...
* add CRC Reader and Writer I/O wrappers
* typo fix and variable rename
2019-03-15 13:17:49 -05:00
a15927f8d0
make KvStore Send+Sync ( #3317 )
2019-03-15 13:01:34 -05:00
4ba4ad9878
Update README.md
2019-03-15 11:53:37 -06:00
be1511a7ff
delete accidental file ( #3316 )
2019-03-15 11:28:08 -05:00
41b98c603b
Upgrade rust stable to 1.33.0
2019-03-15 09:25:28 -07:00
5430dd28b6
Update docker-rust to 1.33
2019-03-15 09:25:28 -07:00
e9d687329b
Only push newly built container
2019-03-15 09:25:28 -07:00
d72cac6e97
Fix chacha test
2019-03-15 09:06:54 -06:00
4e51a444f4
Simplify TransactionBuilder::new_with_instructions
2019-03-15 09:06:54 -06:00
48d86683e2
Abuse KeypairUtil
2019-03-15 09:06:54 -06:00
42d5dde5b1
new_singleton -> new_with_instruction
2019-03-15 09:06:54 -06:00
142eeffe5d
Add BankClient to minimize copypasta
2019-03-15 09:06:54 -06:00
6a68df3ebd
Don't resign airdrop requests with the keypair asking for an airdrop
...
The correct thing to do here is retry until you get a
BlockhashNotFound error, and then send another request
to the drone for a new signed transaction.
Also, this test is an integration test masquerading as a unit-test..
2019-03-15 09:06:54 -06:00
8306c1841c
Fix build
2019-03-15 09:06:54 -06:00
73bd396dfb
Rewrite system integration test
...
Create Client helpers instead of Bank helpers.
2019-03-15 09:06:54 -06:00
36fb0a0aef
Add new preferred transaction constructors
2019-03-15 09:06:54 -06:00
4d53be8350
Make it unappealing to build and sign transactions at the same time
...
Use a client to sign transactions. It'll need that keypair anyway
to resign new blockhashes on retries.
2019-03-15 09:06:54 -06:00
f8bf9ca218
Make safe transaction signing the default
2019-03-15 09:06:54 -06:00
7b4568b9bf
Migrate to sign_checked()
2019-03-15 09:06:54 -06:00
bd8502e87e
Implement Transaction::new_unsigned with TransactionBuilder
2019-03-15 09:06:54 -06:00
21815f26d5
Implement signed transaction using unsigned transaction
2019-03-15 09:06:54 -06:00
8ef5195037
Don't test a transaction with a duplicate key
2019-03-15 09:06:54 -06:00
57606c6bf8
Bump log level for better CI logs
2019-03-15 07:48:23 -07:00
0465abf75b
move ( #2738 )
2019-03-15 06:58:45 -07:00
8a142966be
Avoid stray '' when rust version is not specified
2019-03-14 21:30:24 -07:00
7498488f5f
cloud_DeleteInstances() now waits for the instances to be terminated
2019-03-14 21:15:00 -07:00
ede99d5913
Revert "Block until instances are confirmed to be deleted"
...
This reverts commit 47ddbbe53b
.
2019-03-14 20:53:10 -07:00
3ced91319f
Upgrade nightly rust version
2019-03-14 20:22:46 -07:00
3d1413e619
Preserve original nightly name
2019-03-14 20:22:46 -07:00
8f25548781
Overhaul cargo/rustc version management
2019-03-14 20:22:46 -07:00
47ddbbe53b
Block until instances are confirmed to be deleted
2019-03-14 16:20:18 -07:00
5741400713
add support for finding the next slot a node will be leader ( #3298 )
2019-03-14 16:06:56 -07:00
9f02a8d3d0
remove ticks_per_slot from blocktree ( #3297 )
2019-03-14 15:18:37 -07:00
c208f4dbb5
Add option of replicators to local cluster test
2019-03-14 13:55:11 -07:00
a17843c8f6
solana-install design proposal
2019-03-14 13:21:00 -07:00
3f2fc21bb3
Rename hash_queue and fix boundary condition ( #3289 )
2019-03-14 11:56:36 -07:00
9fac3b26ee
Move the design proposals to a separate book
...
Fixes #3262
2019-03-14 10:08:43 -07:00
c1eec0290e
Rename userdata to data ( #3282 )
...
* Rename userdata to data
Instead of saying "userdata", which is ambiguous and imprecise,
say "instruction data" or "account data".
Also, add `ProgramError::InvalidInstructionData`
Fixes #2761
2019-03-14 10:48:27 -06:00
de13082347
add economic design mvp to summary and overview
2019-03-14 09:42:19 -06:00
48b5d666d0
some economic mvp features
2019-03-14 09:42:19 -06:00
70bb49a46d
some economic mvp features
2019-03-14 09:42:19 -06:00
105fc7029e
create mvp section
2019-03-14 09:42:19 -06:00
77a7ffe543
Bump hex-literal from 0.1.3 to 0.1.4
...
Bumps [hex-literal](https://github.com/RustCrypto/utils ) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/RustCrypto/utils/releases )
- [Commits](https://github.com/RustCrypto/utils/compare/hex-literal-v0.1.3...hex-literal-v0.1.4 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-03-14 07:21:32 -06:00
7d593e6c61
Exit gracefully when no subcommand is specified
2019-03-14 00:35:34 -05:00
bb420cb995
Use crate_description and crate_name Clap macros
2019-03-14 00:35:34 -05:00
e58220282a
Move TransactionError into the SDK
2019-03-13 21:26:57 -06:00
4ca4038d54
Rename BankError to TransactionError
2019-03-13 21:26:57 -06:00
150cd31ec0
Blur the line between Bank and Runtime
2019-03-13 21:26:57 -06:00
6fd0d4dcf5
Boot error piggybacking on BankError
2019-03-13 21:26:57 -06:00
296415945a
Generalize error codes
2019-03-13 21:26:57 -06:00
1de5ae1ef0
Remove SystemError from ProgramError
2019-03-13 21:26:57 -06:00
6a89c68a1d
Add utility function to help get System error out of ProgramError
2019-03-13 21:26:57 -06:00
c14cce4c85
Add InstructionError for runtime instruction errors
2019-03-13 21:26:57 -06:00
959961b596
Modified test
2019-03-13 18:18:27 -07:00
6f76c2da6c
Fix confirmation test
2019-03-13 17:50:53 -07:00
8d2bd2b30f
Reduce ticks per second
...
- It's improving TPS. Temp fix for beacons timeframe
2019-03-13 17:50:53 -07:00
34a8d591fa
Switch version file from .txt to .yaml; add target tuple to version.yml
2019-03-13 16:30:07 -07:00
d94ff4bf4a
Bump tokio from 0.1.15 to 0.1.17
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 0.1.15 to 0.1.17.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Changelog](https://github.com/tokio-rs/tokio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-0.1.15...tokio-0.1.17 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-03-13 15:45:33 -06:00
af03df38b9
Don't vote for empty leader transmissions ( #3248 )
...
* Don't vote for empty leader transmissions
* Add is_delta flag to bank to detect empty leader transmissions
* Plumb new is_votable flag through replay stage
* Fix PohRecorder tests
* Change is_delta to AtomicBool to avoid making Bank references mutable
* Reset start slot in poh_recorder when working bank is cleared, so that connsecutive TPU's will start from the correct place
* Use proper max tick height calculation
* Test for not voting on empty transmission
* tests for is_votable
2019-03-13 14:06:12 -07:00
242bcf44db
Replace stale --no-signer usage with --no-voting
2019-03-13 13:50:30 -07:00
ebd540972d
Remove duplicate --rpc-drone-address
2019-03-13 13:24:02 -07:00
a17be9f8bd
Revert "Add case for --rpc-drone-address"
...
This reverts commit 42ad297778
.
2019-03-13 13:23:54 -07:00
42ad297778
Add case for --rpc-drone-address
2019-03-13 13:04:44 -07:00
0568d7238e
Add implemented design proposals section
2019-03-13 13:20:37 -06:00
9bc05313a2
Update TPU ASCII art
2019-03-13 13:14:15 -06:00
fedbae6f8c
Enable rpc for all testnet nodes
2019-03-13 10:49:40 -07:00
64de639817
Fixes to replicator
...
Move functionality into more functions.
Break down the current test and just test creation/joining the network.
2019-03-13 10:15:03 -07:00
ec9e13d1f4
Add repair slot range
...
Use default impl RepairSlotRange
2019-03-13 10:15:03 -07:00
5d27f221f7
Drop socat for iptables
2019-03-13 12:03:56 -05:00
61db74d98e
Run socat in the background
2019-03-13 08:15:58 -07:00
1d689e84f1
Move and rename cluster_client
2019-03-12 22:05:38 -06:00
b7f420412b
Update publish script
2019-03-12 22:05:38 -06:00
e3ac9e9679
Move thin client tests to integration test suite
2019-03-12 22:05:38 -06:00
12fde77ecd
Update crate references
2019-03-12 22:05:38 -06:00
3fc96c4a18
Add solana-client crate
2019-03-12 22:05:38 -06:00
cb3eeace56
Replay Stage start_leader() can use wrong parent fork() ( #3238 )
...
* Make sure start_leader starts on the last voted block, not necessarily the biggest indexed bank in frozen_slots()
* Fix tvu test
2019-03-12 17:42:53 -07:00
76feb2098e
Use same VM type for validators as leader, if CUDA is enabled ( #3253 )
...
- Since all nodes are created equal
2019-03-12 17:42:47 -07:00
06cb266cfe
remove unused code ( #3252 )
2019-03-12 16:46:41 -07:00
866d3f467f
Fix flag to disable leader-rotation ( #3243 )
2019-03-12 16:35:13 -07:00
c1e726da87
Remove comment
2019-03-12 15:32:41 -07:00
7d7528eb18
Fix test_bank_storage
2019-03-12 15:32:41 -07:00
9f916f9d47
remove Option<> wrapper for accounts
2019-03-12 15:03:26 -07:00
a7d8bfdf8b
Adjust crate list
2019-03-12 14:02:51 -07:00
abdd4f371b
Adjust readme path
2019-03-12 14:02:51 -07:00
13adee332e
Add retry transfer logic to kill_entry_and_spend_and_verify_rest to account for dead forks ( #3239 )
2019-03-12 13:48:02 -07:00
a799f8f4b1
tell blockexplorer to run on port 8080 ( #3237 )
...
* tell blockexplorer to run on port 8080
* forward port 80 to 5000 for a blockexplorer node
2019-03-12 13:39:09 -07:00
1ee43a7633
Remove non-essential programs from runtime/
2019-03-12 15:11:59 -05:00
3d2b7dd1ef
Move programs/system into runtime/
2019-03-12 11:30:58 -05:00
7b35114c0f
Filter vote accounts with no delegate from being selected in Rotation ( #3224 )
2019-03-11 17:58:21 -07:00
b418525464
Update current leader information in metrics and dashboard
2019-03-11 17:43:59 -07:00
8bba11367e
Provide drone's host address while setting up staking account
2019-03-11 17:11:34 -07:00
9eb7e63819
Add staking rewards design proposal for delegation ( #3148 )
...
* proposal for single vote many delegators
2019-03-11 16:35:42 -07:00
092501039c
Cargo.lock
2019-03-11 16:27:22 -07:00
6899bd7099
0.13.0
2019-03-11 16:21:19 -07:00
5a0416b925
Keep stable dashboard on stable channel at all times
2019-03-11 16:19:16 -07:00
ba2cdd0bf6
Move testnet/testnet-perf to the stable channel
2019-03-11 16:14:16 -07:00
fe1676bc3a
Review comments
2019-03-11 16:58:43 -06:00
1a9ef37251
Update programs using simple error mapping to use CustomError
2019-03-11 16:58:43 -06:00
db5370c5df
Add helper macro to implement bincode serialization of program-specific errors
2019-03-11 16:58:43 -06:00
804378e8f7
Add ProgramError::CustomError and truncate value to 32 bytes
2019-03-11 16:58:43 -06:00
56b0ba2601
KvStore - A data-store to support BlockTree ( #2897 )
...
* Mostly implement key-value store and add integration points
Essential key-value store functionality is implemented, needs more work to be integrated, tested, and activated.
Behind the `kvstore` feature.
2019-03-11 17:53:14 -05:00
3073ebb20d
reduce pub
2019-03-11 17:09:21 -05:00
f8e07ef5a3
banking_stage_entryfication fails when run as cargo test
...
Add some retry for getting entries from the channel.
2019-03-11 14:13:32 -07:00
a4b6d181a2
rename forwarder ports to tpu_via_blobs
2019-03-11 14:07:17 -07:00
0b8c5d807d
code cleanup
2019-03-11 14:07:17 -07:00
e201136eee
more review comments
2019-03-11 14:07:17 -07:00
55f660d5f9
address review comments
2019-03-11 14:07:17 -07:00
a4acc631ee
Refactor packing packets into blobs into separate packets_to_blob() function in packets.rs
2019-03-11 14:07:17 -07:00
3ddf4b6c24
PR fixes
2019-03-11 14:07:17 -07:00
ccd1173a83
Add local cluster test for forwarding
2019-03-11 14:07:17 -07:00
cd1a9faacd
Batch packet forwarding in banking stage
2019-03-11 14:07:17 -07:00
b60b8ec5ae
Add logic for deserialzing packets embedded in blobs
2019-03-11 14:07:17 -07:00
536c8accf8
Add separate sockets for tpu forwarder and run different protocol for those sockets
2019-03-11 14:07:17 -07:00
7beefb3f81
Add forwarder sockets and address to contact info and sockets structs
2019-03-11 14:07:17 -07:00
fe1f67ea9a
clippy errors
2019-03-11 14:07:17 -07:00
069ce71256
fix clippy
2019-03-11 14:07:17 -07:00
e3cacb9296
Buffer unprocessed packets if next leader is the current node
2019-03-11 14:07:17 -07:00
0c592c52f6
Wake up replay stage when the poh bank is cleared. ( #3211 )
...
* wake up replay stage when the poh bank is cleared
* bump ticks per second
* Increase ticks per slot to match faster tick rate
* Remove check that working bank must be the bank for the greatest slot
* Make start_leader() skip starting TPU for slots we've already been leader for
2019-03-11 13:58:23 -07:00
78bb96ee51
Reduce bootstrap leader stake ( #3218 )
2019-03-11 13:29:44 -07:00
86e2f35ac4
Only need the TPU and a light client implement Transact
2019-03-10 23:20:10 -06:00
7696a64891
Add design doc for testing programs
2019-03-10 23:20:10 -06:00
799ed24113
Integrate bank-forks proposal into the book
2019-03-10 20:13:36 -06:00
63477dabcd
Attempt to clarify bank forks
2019-03-10 20:13:36 -06:00
cd0bc1dea5
updates to reflect new_from_parent() ( #3076 )
...
* design draft
* update
* section on updating root forks
* updates to reflect new_from_parent()
* fixup
* Grammar check
2019-03-10 13:59:16 -07:00
195a880576
pass Pubkeys as refs, copy only where values needed ( #3213 )
...
* pass Pubkeys as refs, copy only where values needed
* Pubkey is pervasive
* fixup
2019-03-09 19:28:43 -08:00
ac226c3e14
Remove superfluous set_leader() usage
2019-03-08 19:59:54 -08:00
4d5b832775
Remove commented out and clearly broken test
2019-03-08 19:59:54 -08:00
79b2542ca4
Remove CrdsValue::LeaderId
2019-03-08 19:41:51 -08:00
17921c9fae
Delete NodeInfo type
2019-03-08 18:37:36 -08:00
5de38852d2
Add cluster test framework doc. ( #3189 )
2019-03-08 19:29:41 -07:00
0acdbc0d03
plumb staking_account and voting_keypair from multinode-demo to Vote ( #3199 )
...
* plumb staking_account and voting_keypair from bash to Vote
2019-03-08 19:29:08 -07:00
c8c85ff93b
Fix propagation of incorrectly signed messages in Gossip ( #3201 )
2019-03-08 18:08:24 -08:00
31cbb52654
Rename new_entry_point as new_gossip_entry_point to clarify usage
2019-03-08 17:42:25 -08:00
cd88f81817
bench-tps no longer uses an invalid ContactInfo for RPC
2019-03-08 17:42:25 -08:00
6de24ff0be
s/account/program in info msgs
2019-03-08 16:30:29 -07:00
de4d14ddc0
set_leader() now remains local and doesn't emit a LeaderId gossip message
2019-03-08 15:10:19 -08:00
5b386ec30a
Delete cluster_info::get_gossip_top_leader()
2019-03-08 12:10:34 -08:00
8f0aa956a3
bench-tps no longer cares who the leader is
2019-03-08 11:43:07 -08:00
e04148ff44
Reduce leader_id visiblity
2019-03-08 11:42:06 -08:00
d5d853838c
RPC now sends transactions at the local TPU
...
The local TPU will forward the transactions as needed if it's not
currently the leader
2019-03-08 11:42:06 -08:00
e18673953c
Remove poll_gossip_for_leader()
2019-03-08 11:14:47 -08:00
12f3fd75e8
StorageStage now sends transactions at the local TPU
2019-03-08 11:03:49 -08:00
7bd0929157
Remove process_block()
2019-03-08 09:36:30 -08:00
19488ba42a
Speling
2019-03-08 09:36:30 -08:00
f0dc10c67b
Hide close(), the user is supposed to drop instead
2019-03-08 09:36:30 -08:00
f55103498f
Remove commented test code
2019-03-07 19:18:53 -07:00
639cb49356
Fix wallet integration tests
2019-03-07 19:18:53 -07:00
c5e9c6fdb6
Get chacha off Budget
2019-03-07 19:18:53 -07:00
7a4ccc8719
Fix Budget's payment_with_fee test
...
Fee is now independent of the contract.
2019-03-07 19:18:53 -07:00
125a345c90
Fix pubsub test
2019-03-07 19:18:53 -07:00
3dc22e7323
Simulate auto-creation of system accounts
2019-03-07 19:18:53 -07:00
17dcd1f62a
Resurrect the tests
2019-03-07 19:18:53 -07:00
a277f3e816
Migrate to TransactionBuilder
...
This code wasn't updated after we started batching instructions.
The current code does allocations instead of using CreateAccount.
The runtime shouldn't allow that, so getting this code out of the
way before we lock down the runtime.
2019-03-07 19:18:53 -07:00
10b16753af
Remove 'new' constructor
2019-03-07 19:18:53 -07:00
4625aed3a5
Make hypen/underscore consistent
2019-03-07 16:51:25 -08:00
259c820f15
Review comments
2019-03-07 17:21:32 -07:00
e888c90ecf
Add program notifications to JSON RPC documentation
2019-03-07 17:21:32 -07:00
b053bc2790
Load accounts by program owner for program subscriptions
2019-03-07 17:21:32 -07:00
6a81f9e443
Add program subscriptions to rpc
2019-03-07 17:21:32 -07:00
0ef1fa7c76
Replace RemoteVoteSigner with a user-supplied keypair
...
Vote program currently offers no path to vote with the
authorized voter. There should be a
VoteInstruction::new_authorized_vote() that accepts the
keypair of the authorized voter and the pubkey of the vote
account. The only option in current code is
VoteInstruction::new_vote() that accepts the voter's keypair
and assumes that pubkey is the vote account.
2019-03-07 17:15:36 -07:00
02eb234399
Fix TVU and PoH Recorder going out of sync ( #3164 )
...
* Fix broadcast_stage error
* Account for very fast ticks in tick verification
2019-03-07 15:49:07 -08:00
8d80da6b46
Fix picking account store paths
...
Store the set of accounts paths in AccountsDB and choose with an rng
when we need to create a new one. Remove path from AccountStorageEntry object.
2019-03-07 14:58:52 -08:00
22855def27
Fix race condition in store.
...
Multiple threads can enter the read lock and
all store the new empty set to account_maps.
Check again after taking write lock to make sure
only one thread actually inserts the new entry.
2019-03-07 14:58:52 -08:00
0be59cad4e
Remove dead code
2019-03-07 13:05:42 -08:00
5edbd6a7fb
gossip_service::discover() now reports the leader
2019-03-07 13:05:42 -08:00
54ff9b3ac2
Shutdown gossip on failure
2019-03-07 13:05:42 -08:00
5463226184
Give spy nodes a proper keypair
2019-03-07 13:05:42 -08:00
b96bccd71f
Use Self
2019-03-07 13:05:42 -08:00
07a948a0d0
Replicator now uses its keypair for gossip
2019-03-07 13:05:42 -08:00
8f034280dc
Increase polling frequency to report convergence quicker
2019-03-07 13:05:42 -08:00
83f551d9b9
Use poll_gossip_for_leader()
2019-03-07 13:05:42 -08:00
f83a64d17f
poll_gossip_for_leader: simplify timeout arg
2019-03-07 13:05:42 -08:00
8bc7d5a172
Remove spy_node duplication
2019-03-07 13:05:42 -08:00
96c0222b30
Employ gossip_service::discover()
2019-03-07 13:05:42 -08:00
679a718cbf
poll_gossip_for_leader() code cleanup
2019-03-07 13:05:42 -08:00
b083e4db48
Resolve TODO
2019-03-07 13:05:42 -08:00
a3cab470d3
Rename ClusterInfo::new_with_keypair() to ClusterInfo::new()
2019-03-07 13:05:42 -08:00
bb93504965
Rename ClusterInfo::new() to ClusterInfo::new_with_invalid_keypair()
2019-03-07 13:05:42 -08:00
4d58bf4b28
Don't use solana_entrypoint in static libraries
2019-03-07 12:42:13 -07:00
505f77b108
Move a more generic process_transaction to runtime.rs
2019-03-07 12:42:13 -07:00
5b672f8921
Generalize Budget tests to work on multi-ix txs
2019-03-07 12:42:13 -07:00
9e9c0785e7
groom broadcast ( #3170 )
2019-03-07 09:43:42 -08:00
94882418ab
Simplify TransactionBuilder
...
A stepping stone to replacing all Transaction constructors with
TransactionBuilders.
2019-03-07 08:11:03 -07:00
c6cb3bb0bc
Bump env_logger from 0.6.0 to 0.6.1
...
Bumps [env_logger](https://github.com/sebasmagri/env_logger ) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/sebasmagri/env_logger/releases )
- [Commits](https://github.com/sebasmagri/env_logger/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-03-06 22:29:44 -07:00
9fedc9513b
Use generics for add/remove subscriptions
2019-03-06 20:50:48 -08:00
0badc90058
Wallet new tests
2019-03-06 20:46:18 -08:00
61fbea3ee4
Cleanup AccountStorage apis
...
Remove duplicate code
2019-03-06 18:30:36 -08:00
a4a3995a84
Add staking commands to wallet
2019-03-06 17:50:15 -08:00
01fb76f4bd
add epoch warmup ( #3166 )
...
add epoch warmup
2019-03-06 16:32:23 -08:00
d09639f7d2
Move the design out of the proposals section
2019-03-06 17:24:17 -07:00
946ee8a354
Add description of vote and rewards programs
2019-03-06 17:24:17 -07:00
e63b899ca5
Boot staker setup from fullnode
2019-03-06 16:50:27 -07:00
63a4ed74a4
consolidate logic for epoch and slot_index into Bank ( #3144 )
2019-03-06 14:44:21 -08:00
a3782d699d
Bump bytes from 0.4.11 to 0.4.12
...
Bumps [bytes](https://github.com/carllerche/bytes ) from 0.4.11 to 0.4.12.
- [Release notes](https://github.com/carllerche/bytes/releases )
- [Changelog](https://github.com/carllerche/bytes/blob/v0.4.x/CHANGELOG.md )
- [Commits](https://github.com/carllerche/bytes/compare/v0.4.11...v0.4.12 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-03-06 15:05:01 -07:00
97f2c96a7e
Add a transaction and instruction
2019-03-06 15:04:15 -07:00
5979627258
Add authorized voter
2019-03-06 15:04:15 -07:00
9d580e363a
Fix hostname part of queries in dashboard
2019-03-06 13:26:15 -08:00
9163e5b004
Fix sorting order of stakes in confirmation time calculations
2019-03-06 13:11:04 -08:00
0252bf2f46
fix fmt
2019-03-06 12:25:28 -08:00
283bb84134
Create UDP socket once per process_loop for forwarding transactions
2019-03-06 12:25:28 -08:00
0a4f909566
requestAirdrop RPC API is now optional
2019-03-06 10:23:57 -08:00
516aa44aad
Don't fetch the working_bank twice
2019-03-06 10:23:57 -08:00
b1763f9187
Remove dead code
2019-03-06 10:23:57 -08:00
b03fd782de
Make room for more fields in JsonRpcConfig
2019-03-06 10:23:57 -08:00
b850f3c1dd
Remove unnecessary cleanup_paths
...
drop handles it
2019-03-06 11:17:37 -07:00
789a9df9f6
s/id/hash in block events
2019-03-06 08:51:10 -08:00
bd39ab9365
Clean up exit signal handling
2019-03-05 19:20:29 -08:00
1c0cfb17a3
Start leader based on Poh tick height. ( #3084 )
...
* Start leader based on poh and test
* Equalize validator and leader stakes in LocalCluster
* Clear WorkingBank on poh_recorder reset
2019-03-05 17:56:51 -08:00
9491999a95
Remove remaining erc20 references
2019-03-05 17:56:44 -08:00
e2d30db7e1
Rename tokens to lamports
2019-03-05 17:56:44 -08:00
3129e299e4
Rename tokens to lamports in programs/
2019-03-05 17:56:44 -08:00
0604bbb473
Rename tokens to lamports in wallet/
2019-03-05 17:56:44 -08:00
545feab6db
Misc token to lamport renaming
2019-03-05 17:56:44 -08:00
3794048c91
Rename tokens to lamports in book/
2019-03-05 17:56:44 -08:00
beb45f44ac
solana-genesis: rename tokens to lamports
2019-03-05 17:28:06 -08:00
f1d1852691
Rename tokens to lamports in core/
2019-03-05 17:28:06 -08:00
53f09c44f3
Rename tokens to lamports in sdk/
2019-03-05 17:28:06 -08:00
bd237a2d6f
Add transaction to test harness to set the delegate for validator vote accounts
2019-03-05 16:51:47 -07:00
76a7038335
Update test harness to set a delegate on validator vote accounts
2019-03-05 16:51:47 -07:00
c24d95c885
Remove bench-tps, upload-perf, and bench-streamer from code coverage report
2019-03-05 15:35:31 -08:00
cb0560df92
remove dead code
2019-03-05 15:35:24 -08:00
ec034a5cb9
Fix invalid Barrier transactions ( #3139 )
2019-03-05 15:16:36 -08:00
ca99ebaaf4
Add way to create account with delegate in 1 tx
2019-03-05 16:14:57 -07:00
b9e878ee80
slot_height considered harmful ( #3135 )
...
* slot_height considered harmful
* fix test_tick_slot_epoch_indexes
2019-03-05 14:18:29 -08:00
33c4c7e511
Split up long test
2019-03-05 15:16:51 -07:00
b67ac22336
Replace superfluous integration tests with needed one
2019-03-05 15:16:51 -07:00
6ff2572ebe
Refactor system entrypoint to use helper fns; add unit tests
2019-03-05 15:16:51 -07:00
a539c9ad67
Restore print ban, and widen the net
2019-03-05 14:09:40 -08:00
1997640094
Remove prints
2019-03-05 14:09:40 -08:00
e7eafbd24e
Adapt to recent programs/ shuffle
2019-03-05 13:14:07 -08:00
378a0f511e
Stop looking for solana-fullnode-config
2019-03-05 12:44:27 -08:00
9349f90a59
Inherit transaction count from parent ( #3134 )
2019-03-05 12:34:21 -08:00
0f1d6c6271
Check for no entries left in blocktree in a given slot
...
There may not be ENTRIES_PER_SEGMENT entries a slot, if so
then we will hang waiting for more.
2019-03-05 11:53:40 -08:00
8e70f5bf84
Same fix, different location
...
What's this doing way up here?
2019-03-05 12:46:18 -07:00
52fc974cdf
The funder is not a staker
2019-03-05 12:46:18 -07:00
6e9d803091
Remove usage of unsafe for Accounts
2019-03-05 10:13:03 -08:00
fc8489a04d
Stop using LocalVoteSigner
2019-03-05 09:34:54 -07:00
e248efce06
Add programs/system explicitly to CI test suite
2019-03-05 09:33:27 -07:00
b4084c6298
Fix random comment typo
2019-03-05 09:33:27 -07:00
2fdfa98d55
Fix process_pay SystemTransaction type
2019-03-05 09:33:27 -07:00
f506b0a224
Fix test: Prevent SystemInstruction CreateAccount from overwriting accounts in use
2019-03-05 09:33:27 -07:00
202adb1bf1
Create failing test
2019-03-05 09:33:27 -07:00
885eeec3ed
Boot storage program from the SDK
2019-03-05 07:16:33 -07:00
5e9f802d7d
Boot token_program from the SDK
2019-03-05 07:16:33 -07:00
e4be57c3b6
Bump libc from 0.2.49 to 0.2.50
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.49 to 0.2.50.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.49...0.2.50 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-03-05 07:14:51 -07:00
6ab6e6cb9b
Clean up exit flag handing across TVU
2019-03-04 21:26:50 -08:00
2a849ae268
Inline LeaderServices
2019-03-04 21:26:50 -08:00
4808f6a9f8
Clean up exit flag handing in TPU
2019-03-04 21:26:50 -08:00
96bfe92334
Clean up fullnode/tpu/tvu/fetch_stage exit signal
2019-03-04 21:26:50 -08:00
e7cde846cb
Clean up gossip service exit flag handling
2019-03-04 21:26:50 -08:00
eb90d8d463
Clean up Rpc exit signal
2019-03-04 21:26:50 -08:00
6a8a97f644
Remove dead code
2019-03-04 20:05:14 -08:00
3fc846d789
Try to use the RPC exit API to cleanly exit nodes
2019-03-04 19:58:37 -08:00
0f77531f09
Simplify pass-through arg handling
2019-03-04 19:58:37 -08:00
20b831264e
Properly plumb exit flag to PubSubService
2019-03-04 19:58:37 -08:00
43bab23651
remove duplicate child creation ( #3100 )
...
* remove duplicate child creation
* resurrect test for partial slot
* simplify blocktree_processor some more (no tick_height, yay!)
* ensure frozen
2019-03-04 19:22:23 -08:00
906df5e20e
Exit signal cleanup: pass in references, make the receiver clone as needed
2019-03-04 18:43:21 -08:00
794e961328
use Bank's notion of leader_id where possible ( #3119 )
2019-03-04 18:40:47 -08:00
a481822321
Fix signatureUnsubscribe documentation ( #3118 )
2019-03-04 18:07:16 -08:00
dc42c12f2b
Revert to more consistent naming ( #3114 )
2019-03-04 17:50:19 -08:00
6d82123125
rename bank_id to bank_slot
2019-03-04 17:10:27 -08:00
4f6d7702c5
Add a way to build unsigned transactions
2019-03-04 17:47:46 -07:00
97274030b9
Add test with transaction with no signatures
...
Add checks for no signature
2019-03-04 16:42:52 -08:00
9ce2bc94bf
Add flag to enable the JSON RPC fullnodeExit API
2019-03-04 15:49:02 -08:00
51502537b1
Remove extra reference
2019-03-04 15:49:02 -08:00
7b49c9f09c
Delete fullnode-config/
2019-03-04 15:49:02 -08:00
4714dc3a5c
De-pub
2019-03-04 15:49:02 -08:00
44013855d8
Book nits ( #3096 )
...
* Book nits
* nits
2019-03-04 15:44:54 -07:00
846fdd3b2d
Bump reqwest from 0.9.10 to 0.9.11
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.10 to 0.9.11.
- [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.9.10...v0.9.11 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-03-04 13:47:37 -07:00
03d6c9a552
Defeature bpf_loader; bpf_{c,rust} features now confined to programs/bpf
2019-03-04 11:02:37 -08:00
d0be16b49a
Remove duplicated code
2019-03-04 11:02:37 -08:00
3a4018cd03
review comments; rename Unsafe to TestOnlyAllowRpcFullnodeExit
2019-03-04 10:18:17 -08:00
5aaaa7f45c
fixup!
2019-03-04 10:18:17 -08:00
c299dd390e
Fullnode rpc to exit with unsafe config
2019-03-04 10:18:17 -08:00
a3016aebaf
Put accounts test data files in target directory
...
And gitignore it so those aren't added accidentally.
2019-03-04 10:17:02 -08:00
fb55d1c3d4
Design for leader to leader transition between slots ( #2715 )
2019-03-04 10:10:52 -08:00
9c44c173df
Remove ipv6 feature
2019-03-04 09:56:58 -08:00
d708982f27
Remove unstable and test feature flags
2019-03-04 09:30:00 -08:00
bb774173bb
Add PohRecorder reset tests ( #3083 )
...
* tests for reset
* fixup!
2019-03-04 08:08:22 -07:00
3906b1af6a
deadcode ( #3081 )
2019-03-03 21:16:59 -08:00
de1d7ce312
Cleanup staking utils to divide functionality between delegate and normal node utitliites. Also replaces vote_states() with more generalized vote_accounts() in Bank. ( #3070 )
2019-03-03 18:04:13 -08:00
1654199b23
Use PohRecorder to synchronize instead of rotate. ( #3080 )
2019-03-03 16:44:06 -08:00
2ec9bc9f05
Revive payments via Budget
2019-03-03 17:29:13 -07:00
e8ae603a01
Add failing test for a Budget payment
2019-03-03 17:29:13 -07:00
e4dba03e12
accounts shedding ( #3078 )
...
* accounts shedding
* fixup
2019-03-03 16:04:04 -08:00
8ec10d4de9
Simplify Budget's serialize
2019-03-03 14:24:53 -08:00
baca3e6b6b
Cleanup Budget
...
* BudgetProgram -> BudgetState
* Instruction -> BudgetInstruction
* Move BudgetState into its own module
* BudgetInstruction::NewBudget -> BudgetInstruction::InitializeAccount
* BudgetInstruction::new_budget -> BudgetInstruction::new_initialize_account
2019-03-03 14:49:35 -07:00
fc5fcd6cd4
Move native_loader into solana_runtime
2019-03-03 10:59:08 -07:00
33496ffea2
Adjust paths
2019-03-02 22:11:48 -08:00
b8b7de5522
Script can now be run from any directory
2019-03-02 22:11:48 -08:00
109101c2dc
Cleanup features and fix build errors
2019-03-02 22:11:48 -08:00
534619f72f
Update manifest-path
2019-03-02 22:11:48 -08:00
44322124c8
Update paths
2019-03-02 22:11:48 -08:00
9923c543e8
Fix ci scripts
2019-03-02 22:11:48 -08:00
41b5899856
Move programs/Cargo.toml into bpf/
2019-03-02 22:11:48 -08:00
b830449f23
Move top-level native program tests to their respective crates
2019-03-02 22:11:48 -08:00
037fcf6b3d
Bump all native programs up a level
...
Don't categorize programs by a single backend.
2019-03-02 22:11:48 -08:00
e1a1296b9b
Fix cleanup_paths
...
Add back remove of parent in Accounts::drop, but
remove that in the cleanup_paths helper
for the account tests which do not use
make_default_dir.
2019-03-02 20:24:57 -08:00
3f4ff3f7b5
Delete duplicate file
2019-03-02 18:57:11 -07:00
cd4bccfd12
Remove snap support
2019-03-02 17:41:09 -08:00
9c3e7e40cf
Less pub
2019-03-02 17:36:51 -08:00
a9a7fc56eb
Purge MAX_RECENT_TICK_HASHES
2019-03-02 17:04:42 -08:00
398b78dd97
Delete duplicate file
2019-03-02 16:44:36 -08:00
1edf6c361e
Move Vote program out of the SDK
2019-03-02 16:44:36 -08:00
b99e3eafdd
Fix stakes not being setup correctly
2019-03-02 16:44:36 -08:00
e6486b2824
Move Budget out of the SDK
2019-03-02 16:44:36 -08:00
d22a13257e
Refactor bank get vote accounts ( #3052 )
2019-03-02 16:44:36 -08:00
f4c5b9ccb0
remove remove_dir_all() of paths' parents (which we didn't make to begin with)
2019-03-02 12:36:41 -08:00
a94880574b
block_hash => blockhash
2019-03-02 12:13:30 -07:00
0f1582c196
cargo fmt
2019-03-02 12:13:30 -07:00
85159a0eb4
Rename JSON RPC getLastId to getRecentBlockHash
2019-03-02 12:13:30 -07:00
258cf21416
Purge remaining last_id (now called block_hash)
2019-03-02 12:13:30 -07:00
2bfad87a5f
Rename Bank.last_id() to Bank.last_block_hash()
2019-03-02 12:13:30 -07:00
95cbb8a5c0
Switch to recent_block_hash
2019-03-02 12:13:30 -07:00
ce1b72809a
Rename get_last_id() to get_recent_block_hash()
2019-03-02 12:13:30 -07:00
4f3e149a98
Remove stale/wrong comments
2019-03-02 12:13:30 -07:00
642d3d903f
Rename get_storage_mining_entry_height to get_storage_entry_height for consistency
2019-03-02 12:13:30 -07:00
81cd461591
Rename storage_last_id to storage_block_hash
2019-03-02 12:13:30 -07:00
ea110efabd
Rename AdvertiseStorageLastId to AdvertiseStorageRecentBlockHash
2019-03-02 12:13:30 -07:00
0743f54dfe
Rename LastIdNotFound to BlockHashNotFound
2019-03-02 12:13:30 -07:00
176d5e0d37
Rename Transaction last_id field to recent_block_hash
2019-03-02 12:13:30 -07:00
16b71a6be0
Cleanup fork id generation
...
Accounts could end up with id collision depending on how
banks are created, this shouldn't happen.
2019-03-02 10:34:41 -08:00
13ee8efd42
Move build.rs into core/
2019-03-02 09:52:18 -08:00
5f5d779ee1
Move src/ into core/src. Top-level crate is now called solana-workspace
2019-03-02 09:52:18 -08:00
7b849b042c
Split rewards_program.rs
2019-03-02 10:11:37 -07:00
d32f5b6cca
Use process_blocktree to verify the ledger
2019-03-02 08:47:31 -08:00
fcbcf000c4
Use a valid last_id
2019-03-02 08:47:31 -08:00
2bc939f535
Adapt to slower moving last_ids
2019-03-02 08:47:31 -08:00
d5de5bec4f
Register a new last_id once per slot
2019-03-02 08:47:31 -08:00
61beb42797
Decouple tick counting from hash queue
2019-03-02 08:47:31 -08:00
e5be3e1dca
HashQueue no longer hard codes max_entries
2019-03-02 08:47:31 -08:00
986c54de58
Comment out test that's not actually testing anything
...
@sakridge, fyi
2019-03-02 07:50:32 -07:00
49b7e67585
Return program error from process_transaction()
...
Our unit-test helper `process_transaction()` wasn't returning
program errors, which made testing programs tedious and
counter-intuitive.
2019-03-02 07:50:32 -07:00
db825b6e26
Fix vote program bugs
...
Also:
* Add an assertion to the transaction builder if not enough
keypairs were provided for all keys that require signatures.
* Expose bugs in the runtime.
2019-03-02 07:50:32 -07:00
8e273caf7d
Brush up data-plane-fanout to read less like a proposal
2019-03-01 22:50:42 -07:00
b1a648113f
simple replay stage
2019-03-01 20:56:29 -08:00
2782922f7a
Rename BroadcastService back to BroadcastStage
2019-03-01 21:10:53 -07:00
041a06b432
kill multinode ( #3038 )
2019-03-01 20:09:13 -08:00
269a82f796
Bump serde_derive from 1.0.88 to 1.0.89
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.88 to 1.0.89.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-03-01 20:15:49 -07:00
6b83ce4937
address review comments
2019-03-01 17:58:05 -08:00
ae557104a5
Create vote account and fund it in local cluster test harness
2019-03-01 17:58:05 -08:00
6a34b11dd0
Sum up all stakes for a delegate when calculating stake ( #3045 )
2019-03-01 17:31:59 -08:00
54417acfba
changed vote_states to vote_accounts, more useable ( #3047 )
2019-03-01 17:22:49 -08:00
29d12d9ff1
remove new_bank_from_parent_with_id() ( #3039 )
2019-03-01 16:39:23 -08:00
4ee857ab7d
More vote account fixes
...
vote_index not being maintained correctly during a squash.
The tokens==0 shielding accounts were being inserted with
owner=default Pubkey so they didn't know they are vote accounts
and should update the vote accounts set.
2019-03-01 16:25:14 -08:00
771a88665c
Bump serde from 1.0.88 to 1.0.89
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.88 to 1.0.89.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.88...v1.0.89 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-03-01 15:51:11 -07:00
a7c18cc0b4
Fnbool_to_FnOptionT
2019-03-01 14:12:50 -08:00
e30e4cc603
Remove get_confirmation_timestamp() from HashQueue
2019-03-01 13:38:17 -08:00
fdc31e99df
Clean up type casts
2019-03-01 13:38:17 -08:00
a72325dbc2
entry_id -> entry
2019-03-01 13:38:17 -08:00
67b6be66c8
Rename MAX_ENTRY_IDS
2019-03-01 13:38:17 -08:00
8ec13d557f
Generalize tick_height to hash_height
2019-03-01 13:38:17 -08:00
31f570a9f4
Remove unused functions
2019-03-01 13:38:17 -08:00
46b7b795bf
Fix Typo in Fullnode Diagram ( #3036 )
2019-03-01 11:58:09 -08:00
38273427ad
have banks save vote_state by epoch to support stable leader schedules ( #3019 )
...
have banks save vote_state by epoch to support stable leader schedules
2019-03-01 11:54:28 -08:00
46fb0b1b94
Rename last_id to last_hash within HashQueue
2019-03-01 11:48:09 -08:00
224b705f8d
Rename genesis_block.last_id() to genesis_block.hash()
2019-03-01 11:48:09 -08:00
028f41eb51
Move secure vote signing out of proposals
2019-03-01 12:16:28 -07:00
c27726e065
Add a black box local cluster harness ( #3028 )
...
Integration test harness for the network.
2019-03-01 10:36:52 -08:00
a57fb00584
Rename last_id_queue.rs to hash_queue.rs
2019-03-01 09:50:51 -08:00
360055ad70
Rename LastIdQueue to HashQueue
2019-03-01 09:50:51 -08:00
558f10c862
Rename PohEntry.id to PohEntry.hash
2019-03-01 09:50:51 -08:00
c53c351759
Rename erc20 to token-program
...
Everything it uses already had that name, just the crate was never
renamed.
2019-03-01 10:47:38 -07:00
7c4473e0aa
Rename Entry.id to Entry.hash
2019-03-01 09:31:49 -08:00
7e7b79ef34
Rename prev_id to prev_hash
2019-03-01 09:31:49 -08:00
e993d511e3
Rename last_entry_id variables to last_entry_hash
2019-03-01 09:01:59 -08:00
251b0957f1
Ignore flaky test_dropped_handoff_recovery
2019-03-01 09:01:28 -08:00
b9524217fe
Update rust example to use BPF enabled infrastructure ( #2974 )
2019-02-28 22:05:11 -08:00
6b228df3df
Remove last_entry_id/next_blob_index from TvuRotationInfo
2019-02-28 21:57:17 -08:00
6cf6a1ccc3
process_blocktree() now halts forks at the first partial slot
2019-02-28 21:57:17 -08:00
d889e77fba
Add reset_slot_consumed()
2019-02-28 21:57:17 -08:00
93d65aa9cc
Use your words
2019-02-28 21:02:29 -08:00
f216a7179a
Ignore test_full_leader_validator_network
2019-02-28 21:01:10 -08:00
434b8a8970
Fix another PR race
2019-02-28 20:11:50 -08:00
cc9191f1b0
Update blocktree API's ( #3025 )
2019-02-28 19:49:22 -08:00
567bbecca0
use bank.id() where we want 'slot'; bank.slot_height() is not slot ( #3014 )
2019-02-28 19:07:47 -08:00
07e4f9a611
Fix PR race
2019-02-28 18:44:07 -08:00
b41286919d
Rename bank.id to bank.slot ( #3018 )
2019-02-28 18:02:45 -08:00
564057c812
Bump rust-bpf-sysroot to pull in liballoc
2019-02-28 17:25:28 -08:00
20e4edec61
Refactor Vote Program Account setup ( #2992 )
2019-02-28 17:08:45 -08:00
d5f0e49535
Refactor fullnode rotation test ( #3015 )
2019-02-28 15:53:09 -08:00
30bccc0c68
Fix slot index used while calculating leader schedule
...
- slot_leader_at() was using absolute slot number instead of index in the epoch
2019-02-28 15:41:01 -08:00
1c44b738fe
Fix vote_accounts test
2019-02-28 15:22:47 -08:00
217f30f9c3
Add get_supermajority_slot() function ( #2976 )
...
* Moved supermajority functions into new module, staking_utils
* Move staking functions out of bank, and into staking_utils, change get_supermajority_slot to only use state from epoch boundary
* Move bank slot height in staked_nodes_at_slot() to be bank id
2019-02-28 13:15:25 -08:00
fec867539d
More SlotMeta docs ( #3011 )
2019-02-28 12:18:11 -07:00
d123d86d84
remove forks.working_bank() where possible ( #3010 )
2019-02-28 10:57:58 -08:00
485ccd20e4
Use TransactionBuilder in the Rewards transaction
2019-02-28 10:53:26 -08:00
8d004ee947
Clarify is_full
2019-02-28 11:06:06 -07:00
4704aa1f80
Rename SlotMeta::is_trunk to SlotMeta::is_rooted
2019-02-28 10:39:56 -07:00
271115a6be
Switch blockstream_service to create_new_tmp_ledger!
2019-02-28 07:59:17 -08:00
a79caf7795
Test transaction with a fee
2019-02-28 08:56:55 -07:00
404aa63147
Add TransactionBuilder
2019-02-28 08:56:55 -07:00
4610706d9f
Generalize instruction
...
For serialization: Instruction<u8, u8>
For users: Instruction<Pubkey, (Pubkey, bool)>
For programs: Instruction<Pubkey, (Pubkey, bool, Account)>
2019-02-28 08:56:55 -07:00
8e4cd6fcc3
Delete leader scheduler artifact
2019-02-28 07:47:37 -08:00
6eb09a6901
Trigger blockstream on full-slot notification (clean up superfluous stuff)
2019-02-28 07:20:16 -07:00
e04d2379df
Remove bank dependency from forward_entries
2019-02-28 07:20:16 -07:00
5b72a984a3
Bump serde_json from 1.0.38 to 1.0.39
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.38 to 1.0.39.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.38...v1.0.39 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-02-28 06:57:17 -07:00
cf545e64b8
xargo requiress sysroot as source to build dependent crates
2019-02-28 00:49:06 -08:00
ac1e266588
Bump rust-bpf to pull in built-in target bpfel-unknown-unknown ( #3001 )
2019-02-28 00:26:50 -08:00
0f2226901d
Fix transaction count after squash
2019-02-27 23:21:49 -08:00
dad1511484
test_bank_squash: validate transaction_count() before/after squashing
2019-02-27 23:21:49 -08:00
05646d72b8
Remove unnecessary fetching of a new last_id
2019-02-27 22:58:59 -08:00
7ccd601100
Remove incorrect file description
2019-02-27 22:36:18 -08:00
d23f8a3e99
increase accounts coverage ( #2993 )
2019-02-27 21:42:14 -08:00
0dc5af62ff
Standardize on 'use log::*' for easy access to all log level macros
2019-02-27 21:16:23 -08:00
855f1823a4
Include solana-logger for use by tests
2019-02-27 21:16:23 -08:00
7fd40f1eb9
add failing test for #2994 ( #2995 )
2019-02-27 20:46:26 -08:00
95f2f05f45
Refactor account serialize in appendvec
...
Remove dupe code and see how this compares to bincode.
Add benchmarks to justify custom serialize and also experiment with
safe solutions.
2019-02-27 19:57:50 -08:00
cd976a8082
s/tx/transaction/ for function names
2019-02-27 17:00:10 -08:00
163ed40efb
Send program write transactions concurrently
2019-02-27 17:00:10 -08:00
32aaa5fd06
Derive retry timeout from slot duration
2019-02-27 17:00:10 -08:00
163874d4da
remove purge
parameter to accounts ( #2990 )
2019-02-27 16:06:06 -08:00
873007bae1
Fix tests and move bank dependency slightly
2019-02-27 15:31:23 -08:00
a67a88c8ef
Hoist EntrySender in ReplayStage
2019-02-27 15:31:23 -08:00
6d1b43f1b1
Make leader_schedule a utitlity module named leader_schedule_utils ( #2988 )
2019-02-27 14:41:46 -08:00
3a20a20807
Reintroduce leader_id to blobs ( #2986 )
2019-02-27 13:37:08 -08:00
e45559a1a7
Add slot 3 back to ASCII art ( #2979 )
...
* Add slot 3 back to ASCII art
* New slot-oriented diagrams
When 1-block-per-slotm, slots are drawn vertically. That's the ideal
case. Abandoning a block is what should look like something forking
off to the side.
2019-02-27 14:27:58 -07:00
140954a53c
Remove Tpu::is_leader(), fullnode doesn't need it anymore
2019-02-27 11:55:21 -08:00
b5d7ac3ce3
Set delay based on ticks_per_slot to ensure the test makes it to a new block
2019-02-27 11:13:29 -08:00
b5d714eec7
Derive retry timeout from slot duration
2019-02-27 11:13:29 -08:00
36cdaffe25
Fix indent
2019-02-27 11:11:24 -08:00
16e2443f61
Remove unnecessary if
2019-02-27 11:06:38 -08:00
9adbc1dd60
nit: always pass &Arc<Bank>, clone() only where consumed
2019-02-27 10:55:43 -08:00
b6ccb475f1
Clarify FIXME source
2019-02-27 10:37:48 -08:00
ca0f16ccc0
Fix test failure
2019-02-27 08:22:52 -08:00
c241a56fb0
Remove extraneous print.
2019-02-27 08:22:52 -08:00
4149f7fd1c
Fix review comments
2019-02-27 08:22:52 -08:00
cc68ecdacf
Use default if previous values do not exist
2019-02-27 08:22:52 -08:00
96b349dcbb
Performance optimizations
2019-02-27 08:22:52 -08:00
5216952691
Change benchmark path to target/ or OUT_DIR
...
Also reduce some code duplication with cleanup_dirs fn.
2019-02-27 08:22:52 -08:00
c46b2541fe
- Fix lock/unlock of accounts
...
- Fix format check warnings
2019-02-27 08:22:52 -08:00
2158ba5863
tx count per fork
2019-02-27 08:22:52 -08:00
180d297df8
Rebase and panic with no accounts
...
Add Accounts::has_accounts function for hash_internal_state calculation.
2019-02-27 08:22:52 -08:00
c276375a0e
Persistent account storage across directories
2019-02-27 08:22:52 -08:00
130563cd4c
AppendVec
2019-02-27 08:22:52 -08:00
9e2a7921c8
Recover from rebase
2019-02-26 22:08:17 -08:00
9539154a4a
Remove test_name arg
2019-02-26 22:08:17 -08:00
84bd9296cd
Centralize unwrap() within create_new_tmp_ledger!
2019-02-26 22:08:17 -08:00
88ecce12a2
No longer need to give new_fullnode() a random string
2019-02-26 22:08:17 -08:00
5a7b99ecc2
Add/employ create_new_tmp_ledger!()
2019-02-26 22:08:17 -08:00
55a76ed4b0
Populate test ledgers with a full slots to reduce test boilerplate
2019-02-26 22:08:17 -08:00
033a04129a
Add lockouts to vote program ( #2944 )
...
* Add lockouts to vote program
* Rename MAX_VOTE_HISTORY TO MAX_LOCKOUT_HISTORY, change process_vote() to only pop votes after MAX_LOCKOUT_HISTORY + 1 votes have arrived
* Correctly calculate serialized size of an Option, rename root_block to root_slot
2019-02-26 22:19:31 -07:00
789fff2ae2
Replace LeaderScheduler with LeaderScheduler1 ( #2962 )
...
* Migrate to LeaderScheduler1 (and added some missing methods)
* Delete LeaderScheduler
* Rename LeaderScheduler1 to LeaderScheduler
2019-02-26 22:16:18 -07:00
9750488200
Update rust-bpf-sysroot to pull in latest core,stdsimd ( #2972 )
2019-02-26 19:55:28 -08:00
46ec5cf765
Bump dirs from 1.0.4 to 1.0.5
...
Bumps [dirs](https://github.com/soc/dirs-rs ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/soc/dirs-rs/releases )
- [Commits](https://github.com/soc/dirs-rs/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-02-26 20:04:36 -07:00
ee16cc77a3
Move last_ids to a simple Hash, unwrap from Arc<RwLock>>
2019-02-26 18:19:26 -08:00
a669241cb1
Add/use get_tmp_ledger_path!() and tmp_copy_blocktree!()
2019-02-26 17:50:43 -08:00
0174945853
Program tests now check signature status ( #2965 )
2019-02-26 17:09:57 -08:00
ea0837973e
blocktree_processor to use slots as bank ids, and squash
2019-02-26 17:35:22 -07:00
85819983d7
Bump lazy_static from 1.2.0 to 1.3.0
...
Bumps [lazy_static](https://github.com/rust-lang-nursery/lazy-static.rs ) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/rust-lang-nursery/lazy-static.rs/releases )
- [Commits](https://github.com/rust-lang-nursery/lazy-static.rs/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-02-26 17:31:19 -07:00
78841532f7
Add Rust helpers ( #2959 )
2019-02-26 15:17:38 -08:00
72214b2b68
Squash test to test parent bank after squash
2019-02-26 15:15:34 -08:00
ee83a2ac29
Make stake sorting more deterministic for data plane
2019-02-26 14:11:08 -08:00
82c759b6cb
Add whitespace, comment cleanup
2019-02-26 14:07:39 -08:00
6de5354b8e
Update the RPC bank on fullnode rotation
2019-02-26 14:07:39 -08:00
87281f6ed5
ensure at Accounts level that tokens == 0 means None ( #2960 )
2019-02-26 13:51:39 -08:00
a8cd66ffa2
Pull Rust enabled LLVM ( #2957 )
2019-02-26 13:03:57 -08:00
d1e1258f97
Revert "Ignore flaky test_active_set_refresh_with_bank"
...
This reverts commit 10ad536e09
.
2019-02-26 12:04:58 -08:00
4d73bbe48f
Fix flaky gossip weighted tests
2019-02-26 11:58:03 -08:00
10ad536e09
Ignore flaky test_active_set_refresh_with_bank
2019-02-26 11:56:47 -08:00
bc2d4c7681
Clean up test_boot_validator_from_file()
2019-02-26 11:12:05 -08:00
a7f200847f
Clean up test_leader_restart_validator_start_from_old_ledger
2019-02-26 11:12:05 -08:00
411f154827
Reduce log spam
2019-02-26 11:12:05 -08:00
6dcb97af9e
Move PohService and PohRecorder out of banking_stage and into fullnode ( #2852 )
...
* Move PohService out of banking_stage and into fullnode.
* 10 second slots
2019-02-26 10:48:18 -08:00
9420ba52e9
Squash the new working bank to ensure zero-balance accounts get purged
2019-02-26 10:09:31 -08:00
ec35c1fc79
Fix leader scheduling in replay stage
2019-02-26 09:51:12 -07:00
b752511f41
Attempt to pull the completed replication work into the book
2019-02-26 09:23:12 -07:00
af206111e2
Hoist new leader scheduler up to protocol level
...
Attempt to feel similar to LeaderScheduler to easy migration.
2019-02-26 08:23:01 -08:00
ba50e1ac81
Move data plane fanout chapter out of proposals
2019-02-26 09:20:09 -07:00
f9f493ee7a
Tighten up storage_stage changes
2019-02-26 09:05:00 -07:00
137233b4a1
Add EntryMeta wrapper
2019-02-26 09:05:00 -07:00
3897b66270
Let the bank creator decide where to send transaction fees
2019-02-26 08:06:08 -07:00
feefdca969
Minor cleanup to Bank and LastIdQueue
2019-02-26 06:46:38 -08:00
25690ff078
merge_parents() => squash() ( #2943 )
2019-02-25 20:34:05 -08:00
897279eddb
Encapsulate log::Level so counter macro users don't need to use it
2019-02-25 20:01:30 -08:00
5f5725a4ea
Re-add leader scheduler
2019-02-25 19:28:24 -08:00
6a61f25735
Only install rust-bpf if rust-bpf version changes ( #2939 )
2019-02-25 19:09:16 -08:00
454c66f988
fixup!
2019-02-25 18:17:36 -08:00
3e893ffddc
Remove max_tick_height, leader_scheduler from broadcast_service
2019-02-25 18:17:36 -08:00
58eebd7f6c
Remove tick counting from broadast service
2019-02-25 18:17:36 -08:00
ba5077701d
Avoid possible simplified lowering of passed struct ( #2938 )
2019-02-25 17:05:59 -08:00
2f44555437
Fix fullnode test
2019-02-25 16:55:22 -08:00
299b642803
Cleanup fullnode rotate integration test, and unignore two tests
2019-02-25 16:55:22 -08:00
a2bf59cbba
Ignore rust toolchain and sysroot
2019-02-25 16:40:35 -08:00
329382f016
Pull BPF enabled rustc and sysroot into SDK ( #2936 )
2019-02-25 15:35:45 -08:00
67c9bbc6b2
* drop parents once merged ( #2930 )
...
* add bank.id() which can be used by BankForks, blocktree_processor
* add bank.hash(), make hash_internal_state() private
* add bank.freeze()/is_frozen(), also useful for blocktree_processor, eventual freeze()ing in replay
2019-02-25 14:05:02 -08:00
6088b3bfc8
Replace DEFAULT_SLOT_HEIGHT with 0
2019-02-25 13:09:13 -08:00
2be7896157
Pull in latest rBPF that includes Rust dependent changes ( #2929 )
2019-02-25 12:42:48 -08:00
0b37f530ae
Start replay stage from the slot-relative blob index, not the global entry height
2019-02-25 11:38:46 -08:00
c13ae10d31
Fix replay_stage to 1) skip leader slots, 2) create/set working banks properly
2019-02-25 11:38:46 -08:00
1e15e6375a
Check for entry height in the unchanging bank_forks_info instead of a racy check to blocktree
2019-02-25 11:38:46 -08:00
ed684c5ec6
Build docker image with rust 1.32
2019-02-25 09:16:11 -08:00
2fbdec59cb
Generalize access to staked nodes
2019-02-25 08:49:43 -08:00
710f88edda
Handle edge cases earlier
...
We have lots of tests that work off genesis block. Also, one
might want to generate a future leader schedule under the assumption
the stakers stay the same.
2019-02-25 08:49:43 -08:00
db899a2813
Inline LeaderSchedule::new_from_bank()
...
Breaks circular dependency and offers more flexibility in bank's
usage.
2019-02-25 08:49:43 -08:00
aad0d90fdd
Use epoch_height to generate schedule instead of last_id
...
I had suggested the last_id, but that puts an unnecessary dependency
on LastIdsQueue. Using epoch height is pretty interesting in that
given the same set of stakers, you simply increment the seed once
per epoch.
Also, tighten up the LeaderSchedule code.
2019-02-25 08:49:43 -08:00
72b4834446
Add Bank::prev_slot_leader() and Bank::next_slot_leader()
2019-02-25 08:49:43 -08:00
ec48c58df1
Award tx fees to validators in new leader schedule
...
Also, generalize the leader_schedule functions a bit to allow for
prev_slot_leader and next_slot_leader, should they be needed.
2019-02-25 08:49:43 -08:00
0947ec59c9
Expose the new leader schedule functionality from the bank.
2019-02-25 08:49:43 -08:00
d67211305c
Ignore slow benchmarks
2019-02-24 23:15:05 -07:00
c65046e1a2
Use PohRecorder as the Poh synchronization point. ( #2926 )
...
Cleanup poh_recorder and poh_service.
* ticks are sent only if poh.tick_height > WorkingBank::min_tick_height and <= WorkingBank::max_tick_height
* entries are recorded only if poh.tick_height >= WorkingBank::min_tick_height and < WorkingBank::max_tick_height
2019-02-24 08:59:49 -08:00
ba7d121724
Switch to Bank::staked_nodes(); want node_id, not staker_id
...
Also, update LeaderScheduler's code to use node_id as well.
Unfortuntely, no unit tests for this, because there's currently
only one way to set staker_id/node_id, and they are both set
to the same value.
2019-02-24 07:52:44 -07:00
a1070e9572
Split ActiveStakers over Bank and LeaderScheduler
2019-02-24 07:52:44 -07:00
f89e83ae49
Delete redundant code
2019-02-23 16:09:00 -08:00
264f502ed7
Query the bank for the current slot leader
2019-02-23 15:51:37 -07:00
c5876ddca9
Make LeaderScheduler::new_with_window_len private
...
It's useful for unit-testing, but generally isn't a variable
validators should be modifying. Blockstream and BlockstreamService
were the only ones using it. Switching them from a hard-coded 10
to the default didn't cause any test failures, so running with it.
2019-02-23 14:48:27 -07:00
fdf6cae6fb
Use bank for leader scheduler's config
...
This ensures GenesisBlock is always configured with the same
ticks_per_slot as LeaderScheduler. This will make it easier
to migrate to bank-generated schedules.
2019-02-23 14:48:27 -07:00
d26f836212
tmp_copy_ledger -> tmp_copy_blocktree
2019-02-23 08:32:05 -07:00
da98982732
Deprecate tmp_copy_ledger
...
This should allow us to get rid of all the manual routing of
ticks_per_slot in the test suite.
2019-02-23 07:57:45 -07:00
cc10e84ab7
sample_ledger -> sample_blocktree
2019-02-23 07:08:11 -07:00
6cd91cd7ec
Hold slots_per_epoch, not ticks_per_epoch
...
Same as bank and less invariants to check
2019-02-22 22:02:23 -07:00
e19dbdc527
Use Bank for ticks_per_slot
2019-02-22 22:02:23 -07:00
0b8809da6e
Fix duplicated path to fullnode
...
Fixes flaky tests.
2019-02-22 16:35:40 -08:00
35aefdf1db
Reduce test noise ( #2907 )
2019-02-22 16:27:19 -08:00
66891d9d4e
Don't use global storage account
...
Other accounts would not be able to modify the system accounts userdata.
2019-02-22 15:59:55 -08:00
6bca577d6d
Bump libc from 0.2.48 to 0.2.49
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.48 to 0.2.49.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-02-22 16:45:14 -07:00
f5400ccefc
Ignore storage test
...
@sakridge is working on a fix.
2019-02-22 16:18:10 -07:00
a56d717ea8
Add a check that shows why the storage program is failing
2019-02-22 16:18:10 -07:00
11c7aab023
Add some unit-tests
2019-02-22 16:18:10 -07:00
5541eedcc4
Reject modifications to userdata if not owned by the program
2019-02-22 16:18:10 -07:00
77ea4cd285
Reapply dependency Band-aid to make CI happy
2019-02-22 15:56:07 -07:00
8353b420d1
Move blocktree-oriented diagram out of proposals
2019-02-22 15:24:36 -07:00
71602fe04b
Fix root package dependencies ( #2899 )
2019-02-22 14:08:25 -08:00
054c12ea0f
Bump hex-literal from 0.1.2 to 0.1.3
...
Bumps [hex-literal](https://github.com/RustCrypto/utils ) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/RustCrypto/utils/releases )
- [Commits](https://github.com/RustCrypto/utils/compare/hex-literal-v0.1.2...hex-literal-v0.1.3 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-02-22 13:47:55 -07:00
0003dbf3ba
remove unnecessary imports
2019-02-22 12:13:05 -08:00
c07b6c30a1
Remove special casing of ProgramError in blocktree processor
...
- Also refactor bank.rs and add unit tests
2019-02-22 12:13:05 -08:00
bad48ce83c
Split replicator doc into what is implemented and what is not
2019-02-22 13:12:49 -07:00
2d03ae2fae
Migrate fullnode to create_tmp_sample_blocktree
2019-02-22 11:18:01 -07:00
3a7008949f
Build all deps ( #2896 )
2019-02-22 09:49:25 -08:00
973ad7554e
Remove superfluous GenesisBlock::load()
2019-02-22 08:41:59 -08:00
3be154490d
Deprecate create_tmp_sample_ledger
2019-02-22 00:24:46 -07:00
3610768888
Run featurized tests on sub-packages ( #2867 )
2019-02-21 22:38:36 -08:00
4602d3bf46
Unit-tests can use ordinary keypairs
2019-02-21 22:01:20 -08:00
778583ad08
Inline BlockConfig::ticks_per_slot
2019-02-21 20:37:21 -08:00
fb904e7a29
Enable CUDA persistence mode to reduce surprises
2019-02-21 19:25:17 -08:00
b501090443
Route BankForks into the ReplayStage
2019-02-21 19:25:17 -08:00
f0f55af35b
Add scheduler config to genesis
...
Anything that affects how the ledger is interpreted needs to be
in the genesis block or someplace on the ledger before later
parts of the ledger are interpreted. We currently don't have an
on-chain program for cluster parameters, so that leaves only
the genesis block option.
2019-02-21 17:29:55 -08:00
3e8d96a95b
fix failing tests
2019-02-21 16:35:23 -08:00
9713a3ac02
fix clippy warnings
2019-02-21 16:35:23 -08:00
5c9777970d
moved fee collection code to runtime
2019-02-21 16:35:23 -08:00
c142a82ae0
Charge transaction fee even in case of ProgramError
2019-02-21 16:35:23 -08:00
18d48f09f8
Plumb blockstreamer name through testnet scripts
2019-02-21 17:24:29 -07:00
deeabb862d
Call it blockstreamer
2019-02-21 17:24:29 -07:00
d8f6865338
Rename EntryStream to Blockstream
2019-02-21 17:24:29 -07:00
4a0c759795
Fix misspellings stumbled on
2019-02-21 17:24:29 -07:00
a131c90260
Add doc for api node
2019-02-21 17:24:29 -07:00
fc48062867
Rename active_window_length to active_window_num_slots
2019-02-21 15:48:13 -08:00
f77788447c
Debug for Account
...
Derive prints the full userdata vec which is questionably useful.
2019-02-21 14:57:32 -08:00
d25fc7a649
Stop passing blob_index unnecessarily into ReplayStage
2019-02-21 15:33:01 -07:00
bf3d2bd2ec
Update Gossip entry in the book
2019-02-21 15:32:21 -07:00
60a6ff80ee
Change votes and associated test/helper functions to vote based on slot height
2019-02-21 15:31:53 -07:00
9e1c5e1ab0
switch vote program to use slot height instead of tick height, change confirmation computation to use slots
2019-02-21 15:31:53 -07:00
20fffd8abf
Delete BankForks::finalized_bank()
2019-02-21 13:21:08 -08:00
98ed785711
Cargo.lock
2019-02-21 13:00:19 -08:00
7cb695df12
RetransmitStage now gets a BankForks
2019-02-21 12:56:56 -08:00
c94bc2a0b6
Remove dead code
2019-02-21 12:38:43 -08:00
511085b747
Make trait pub
2019-02-21 13:32:25 -07:00
f76ac94d70
Remove leader_schedule_offset public method
...
Also,
* Rename the private variable to include units.
* Better doc
2019-02-21 12:28:11 -08:00
32caa55d67
Offer a way to get the leader_schedule from any Bank instance
2019-02-21 12:28:11 -08:00
b69475937f
Program tests depend on native/noop ( #2873 )
2019-02-21 12:22:55 -08:00
f6ff33db8e
* add merge_parents(), which means 'eat your parent' ( #2851 )
...
* add is_root(), which is false if the bank has a parent
* use is_root() for store_slow and store_accounts to decide whether to purge on zero balance
2019-02-21 12:08:50 -08:00
dcf1200d2a
Make Fullnode do less work on rotation, ReplayStage can just pass along more details
2019-02-21 11:13:06 -08:00
40977fa99f
More forward-looking test
2019-02-21 10:54:25 -07:00
f4df8ff5b3
Add slot_height() and epoch_height() methods to Bank
2019-02-21 10:54:25 -07:00
080db1c62d
Plumb BankForks into GossipService
2019-02-20 22:19:51 -08:00
4d5e2c8a4d
Plumb BankForks into RPC subsystem
2019-02-20 21:46:48 -08:00
13d018e3e1
Fix stake selection for the Data Plane ( #2863 )
...
* Update data-plane to use stakes instead of a bank directly
* Rename get_stakes to staked_nodes
2019-02-20 21:38:16 -08:00
59ee2b8892
Fullnode now holds a BankForks instead of a Bank
2019-02-20 21:13:04 -08:00
0dde79f42b
Push BankForks into Fullnode::new()
2019-02-20 21:13:04 -08:00
a4411ef6a1
Generate a schedule from a bank
2019-02-20 20:33:33 -08:00
3c62e2332e
Cleanup stakes for gossip ( #2860 )
2019-02-20 20:02:47 -08:00
1cd88968cf
Remove get_leader_for_next_tick()
2019-02-20 19:33:03 -08:00
28a53959e0
Remove dead types
2019-02-20 18:39:32 -08:00
7c26a4d0a0
Add weighted sampling based on stakes ( #2854 )
...
* Add weighted sampling based on stakes
2019-02-20 18:21:08 -08:00
6ed2e4c187
process_blocktree now loads forks
2019-02-20 17:27:02 -08:00
a484c87354
Make gossip selection stake based ( #2848 )
2019-02-20 17:08:56 -08:00
33c7f92f56
Dial down CI timeouts
2019-02-20 16:43:13 -08:00
b8f6280fe5
Move hash_internal_state tests into runtime
...
This was intended as a Bank test, but only in blocktree_processor
because of its dependency on Entry, which solana_runtime doesn't
know about.
2019-02-20 16:13:26 -08:00
822bebea46
Allow multiple forks without regenerating the hash
2019-02-20 16:13:26 -08:00
582a7192ec
Hold Bank's own parent hash instead of the parent's
2019-02-20 16:13:26 -08:00
5492aad61e
Cache ticks until a working bank can pick them up
2019-02-20 14:14:38 -08:00
27f973c923
github review
2019-02-20 14:19:25 -07:00
3357cebcdb
Added notes from discussion on discord
2019-02-20 14:19:25 -07:00
7ce9c0a2e9
cleanup runtime chapter
2019-02-20 14:18:43 -07:00
e9daf57d7f
Absorb LeaderScheduler's rank_active_set()
...
Delete overly-complicated tests
2019-02-20 13:13:31 -07:00
1c2169aec7
Use rank_stakes() in LeaderScheduler
2019-02-20 13:13:31 -07:00
cf163a9dab
Remove unutilized cuteness
2019-02-20 13:13:31 -07:00
dfcf3f94dc
Absorb LeaderScheduler::get_active_set()
...
No functional changes
2019-02-20 13:13:31 -07:00
b13fb6097f
Get rid of the HashSet special case
...
ActiveSet ranks on construction. get_active_set() is on its way out.
This is a stepping stone.
2019-02-20 13:13:31 -07:00
6e24a4aa50
Less copy pasta
2019-02-20 13:13:31 -07:00
fb1c6cf4da
Drop a bunch of dependencies on VotingKeypair
...
And de-Arc
2019-02-20 13:13:31 -07:00
af1b8f8a26
Absorb vote utilities
...
But drop dependency on VotingKeypair. Only pass in VotingKeypair
in VotingKeypair tests or integration tests.
2019-02-20 13:13:31 -07:00
88d6db8537
And ranking and simplify
2019-02-20 13:13:31 -07:00
6ce2c06fd6
Add primitive ActiveStakers and LeaderSchedule objects
2019-02-20 13:13:31 -07:00
136f7e4b3b
Update test to validate entry height
2019-02-20 11:42:06 -07:00
0a73bb7efd
Add tick-height field to entry event payload
2019-02-20 11:42:06 -07:00
2cf00021d9
Update golden hash to account for tick_height removal
2019-02-20 07:47:04 -08:00
8d38c2f800
Remove Entry::tick_height field
2019-02-20 07:47:04 -08:00
9848de6cda
Remove special case in Bank::deposit()
...
And use it to process the genesis block.
2019-02-20 08:12:37 -07:00
19a3606315
Fix broken test, added some tests to calculate tx fee
...
Some code cleanup
2019-02-20 08:12:37 -07:00
cc2227d943
rename slot_num
2019-02-20 08:12:37 -07:00
a33921ed34
address review comments
2019-02-20 08:12:37 -07:00
2e75ff27ac
Fix test
2019-02-20 08:12:37 -07:00
a27cdf55e7
Credit transaction fees to the slot leader
2019-02-20 08:12:37 -07:00
3d00992c95
Remove dependency on Entry::tick_height
2019-02-20 06:57:38 -08:00
77cb70dd80
Remove dependency on Entry::tick_height
2019-02-19 22:40:10 -08:00
8daba3e563
Add test demonstrating that process_blocktree()'s implementation is lacking
2019-02-19 20:37:06 -08:00
94f9ac0332
DRY up GenesisBlock
2019-02-19 20:34:58 -08:00
a17903a89f
Tweak process_blocktree() signature to return a BankForks
2019-02-19 20:01:22 -08:00
dda0a1f39b
Move storage tests out of Bank
2019-02-19 17:26:33 -07:00
0ef670a865
Move sender out of poh_recorder ( #2837 )
2019-02-19 16:22:33 -08:00
04f54655c2
Minor cleanup
2019-02-19 15:53:31 -08:00
dc5590f2bf
unuse std ( #2833 )
2019-02-19 15:27:07 -08:00
bc52fce810
Fix the custom programs command in net.sh
2019-02-19 13:53:43 -07:00
b9bb92099e
Go object-oriented
...
Easy to imagine a trait here that's implemented using a Bank or
a testnet.
2019-02-19 10:59:06 -07:00
64dcc31ac7
Migrate Rewards test from runtime to Bank
2019-02-19 10:59:06 -07:00
36546b4c4c
Expose a Bank API for adding native programs
...
Also use it to tighten up the code to add the builtin programs.
2019-02-19 10:20:27 -07:00
dde886f058
Move Bank to its own crate
...
Also:
* counters.rs to solana_metrics
* genesis_block.rs to solana_sdk
2019-02-19 07:17:04 -07:00
781f7ef570
fix test_repair_empty_slot
2019-02-18 23:38:28 -08:00
3e8bb32ffd
Add test for write_entries()
2019-02-18 23:38:28 -08:00
df310641fb
Re-enable and add tests
2019-02-18 23:38:28 -08:00
21ef55f205
re-enable repair service tests
2019-02-18 23:38:28 -08:00
ade36566ea
i
2019-02-18 21:56:23 -08:00
08d7a0d52d
Upgrade to Rust 1.32.0
...
$ rustup update stable
2019-02-18 21:44:09 -07:00
1fd2885995
Add missing -
2019-02-18 20:09:18 -08:00
d357640fbf
Centralize decentralized timing constants
2019-02-18 19:46:58 -08:00
ad9cd23202
Notify subscribers from ReplayStage
2019-02-18 20:04:30 -07:00
5916177dc8
Drop RpcPubSubService's dependency on the Bank
...
Pass in RpcSubscriptions instead, which let's you choose a
bank fork when it's time to send notifications.
2019-02-18 20:04:30 -07:00
905b1e2775
Add notify_subscribers()
2019-02-18 20:04:30 -07:00
377d45c9dd
Pull RpcSubscriptions out of the Bank
2019-02-18 20:04:30 -07:00
a444cac2aa
Switch to upstream AMIs for non-CUDA EC2 testnets
2019-02-18 18:59:56 -08:00
1e714eb6b2
Generate ec2 security group programmatically
2019-02-18 18:59:56 -08:00
3f14466965
Limit blockexplorer versions to 1.x.y
...
Per semver semantics when blockexplorer 2.0.0 is released it will be
incompatible in some way with 1.x.y and thus should be opt in.
2019-02-18 16:48:33 -08:00
e0b8f4202d
Use slot height for BankForks ids
2019-02-18 17:27:20 -07:00
11b14bd3ab
Bump reqwest from 0.9.9 to 0.9.10
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.9 to 0.9.10.
- [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.9.9...v0.9.10 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-02-18 13:28:55 -07:00
90684483e2
Make Bank::hash_internal_state() work with checkpoints
2019-02-18 12:47:10 -07:00
760a82cb08
Add optional deploy of custom programs ( #2817 )
...
* Add optional deploy of custom programs
* Review comments
2019-02-18 11:43:36 -07:00
0317583489
Move avalanche logic to ClusterInfo
...
The simulator doesn't depend on RetransmitStage. It depends on
just one function, which is similar in spirit to many of the
methods in ClusterInfo.
2019-02-18 09:08:18 -08:00
1c3f2bba6d
Move avalanche simulator to integration tests
2019-02-18 09:08:18 -08:00
7d62bf9a3d
Move crds_gossip simulator to integration tests
2019-02-18 09:55:52 -07:00
7c248cd2ef
Move expensive test to integration tests
...
This test passes consistently when the test suite is run with a
single thread. It fails consistently on MacOS when run as part
of the unit-test suite.
No idea why it passes in CI.
2019-02-18 09:27:23 -07:00
e4119268ca
Delete expensive integration test in unit-test suite
2019-02-18 09:27:09 -07:00
fc2760e761
Remove bank dependency from poh_recorder ( #2810 )
...
* Remove bank dependency from poh_recorder
* clippy
2019-02-18 06:33:07 -08:00
c57084de36
Ignore test_two_fullnodes_rotate integration tests
2019-02-18 06:19:46 -08:00
907aff3b43
Cleanup Poh code
2019-02-17 21:12:55 -07:00
2793404116
Ensure blockexplorer comes back up when nodes are updated instead of restarted
2019-02-17 20:07:12 -08:00
d850f67979
Remove 'Compute' from name ComputeLeaderConfirmationService
...
struct names should be a noun
2019-02-17 19:44:09 -08:00
8080063024
nit
2019-02-17 19:30:45 -07:00
f33c6eb95f
delete leader rotation signal from banking stage
2019-02-17 19:30:45 -07:00
4e3d71c2c9
Batch joins on entire tpumode struct instead of individual services
2019-02-17 19:30:23 -07:00
a074cb78cd
Ensure leader services are closed before starting new ones
2019-02-17 19:30:23 -07:00
0dbc33f781
Finish removing getConfirmationTime
2019-02-17 16:27:50 -08:00
25bbc3bc2a
wrong error
2019-02-17 15:43:13 -08:00
5f55a9be84
fmt
2019-02-17 15:43:13 -08:00
300e3d151d
remove the signal sender since its superfelous to a recv error
2019-02-17 15:43:13 -08:00
2f7911b62a
Boot BankError::MaxHeightReached
2019-02-17 16:30:01 -07:00
54dfe708c1
use ref for new_from_parent; test that transactions don't leak to parent
2019-02-17 15:02:08 -07:00
8166925f04
copy a new bank
2019-02-17 15:02:08 -07:00
64f1d93cc3
Use the accounts list from parents up to finalized bank for Account::load apis.
...
Borrow checker
query the previous parents accounts
cleanup!
s/tree/parents
Tests! Last_ids need to be inherited as well otherwise nothing works.
new_from_parent
2019-02-17 15:02:08 -07:00
6d67568037
Delete useless wrappers
2019-02-17 14:10:34 -07:00
5003e97479
Inline private functions
...
Better code coverage in exchange for calling `create_session()`
2019-02-17 14:10:34 -07:00
858068cdc0
Drop sudo, it's now handled internally by the block explorer
2019-02-17 12:29:53 -08:00
65fb307d0f
Avoid '' argument to fullnode.sh
2019-02-17 11:43:41 -08:00
2f1fe726f5
Expand imports
...
tokio is a heavy dependency. This gives us some visibility into
what we're using.
2019-02-17 12:20:05 -07:00
e9b0e3cb9d
Move RpcSignatureStatus into its own module
...
And fixup some imports from previous commits.
2019-02-17 12:20:05 -07:00
34fceca7ff
Fix compiler warnings
2019-02-17 12:20:05 -07:00
c646845cd3
Move RpcService into its own module
2019-02-17 12:20:05 -07:00
eb483bc053
Move RpcPubSubService into its own module
2019-02-17 12:20:05 -07:00
50d3fa7437
Move RpcSubscriptions into its own module
2019-02-17 12:20:05 -07:00
9f7fc5f054
Boot unused trait
...
Some ambitious unit-testing plans unimplemented?
2019-02-17 12:20:05 -07:00
a27e9cb3c2
Add -u option
2019-02-17 10:45:25 -08:00
10270dcbad
Add an API node to non-perf testnets
2019-02-17 10:39:27 -08:00
4ff4fb6c38
Add support for an API node that hosts the block explorer
2019-02-17 10:39:27 -08:00
c8c794e340
Use the accounts and status cache from parents up to finalized bank for calls. ( #2798 )
...
* Use the accounts list from parents up to finalized bank for Account::load apis.
* Borrow checker
* query the previous parents accounts
* cleanup!
* s/tree/parents
* Tests! Last_ids need to be inherited as well otherwise nothing works.
2019-02-17 08:01:31 -08:00
97a1e950ef
write entries in blocktree now sets parent slot properly ( #2800 )
2019-02-17 04:36:49 -08:00
9fa8105ae8
Add a way to make a DAG of checkpointed Banks
2019-02-16 21:49:06 -07:00
d68b6ea7b1
Default entry stream socket to location used by the block explorer
2019-02-16 19:14:19 -08:00
58f4709362
Reduce log severity of entry stream errors
2019-02-16 19:10:00 -08:00
f71cd2c6f3
Status cache runs out of space in the bloom filter ( #2796 )
...
The cache is designed for 1m statuses, about 1 second worth of transactions at full capacity. Refresh the cache every 1 second worth of ticks.
2019-02-16 16:41:03 -08:00
8ec1f6ea2e
Applied review feedback
2019-02-16 17:15:31 -07:00
d63c8ae1ae
Add PR guidelines
2019-02-16 17:15:31 -07:00
e39094ac37
Hoist Slot Leader dependencies up to BankingStage
2019-02-16 15:36:31 -07:00
b539389741
Move all Validator dependencies from Bank to blocktree_processor
2019-02-16 15:01:26 -07:00
ac35fe9ed1
Flip the dependency; Create bank before scheduler
2019-02-16 14:16:48 -07:00
3d70afc578
Boot leader scheduler from the bank
...
Functional change: the leader scheduler is no longer implicitly
updated by PohRecorder via register_tick(). That's intended to
be a "feature" (crossing fingers).
2019-02-16 14:16:48 -07:00
b919b3e3b2
Bank no longer updates a leader scheduler by default
2019-02-16 14:16:48 -07:00
7a7349f2ff
Don't update the leader scheduler in bank's default constructor
2019-02-16 14:16:48 -07:00
07b57735b1
Move leader scheduler test out of bank
2019-02-16 14:16:48 -07:00
e42c95a327
Bump bincode from 1.1.1 to 1.1.2
...
Bumps [bincode](https://github.com/TyOverby/bincode ) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/TyOverby/bincode/releases )
- [Commits](https://github.com/TyOverby/bincode/compare/v1.1.1...v1.1.2 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-02-16 13:58:37 -07:00
473af78368
Support --entry-stream argument
2019-02-16 10:40:47 -08:00
ab6c7f6ca3
/it/ti/
2019-02-16 10:40:47 -08:00
599516473a
Add top-level run.sh for easy local cluster startup
2019-02-16 10:40:47 -08:00
83ac075b22
Use full app name for better cli help text
2019-02-16 10:40:47 -08:00
3548c6c43a
Add support for locally built programs
2019-02-16 10:40:47 -08:00
3bfe2e75b5
Boot new_with_leader_scheduler_config
...
Only used in one place. Easy enough to use the one with the shared
leader scheduler.
2019-02-16 10:55:58 -07:00
97c93629a5
Don't use the Bank's LeaderScheduler
2019-02-16 10:55:58 -07:00
643384e1ec
Add LeaderScheduler constructor to Bank
...
By passing a config and not a Arc'ed LeaderScheduler, callers
need to use `Bank::leader_scheduler` to access the scheduler.
By using the new constructor, there should be no incentive to
reach into the bank for that object.
2019-02-16 10:55:58 -07:00
1809277e05
Encapsulate Bank accounts
...
That way we don't need to TODOs saying "don't forget to iterate
over checkpoints too". It should be assumed that when the bank
references its previous checkpoint all its methods would
acknowledge it.
2019-02-16 08:41:35 -07:00
7981865fd2
Boot unused confirmation-time from Bank
...
This broken metric is already submitted to influx. Why make it
available via RPC too? If so, why store it in the bank and not
in the RPC service?
2019-02-16 08:11:43 -07:00
4467d5eb4c
Extract process_ledger from Bank
...
Fullnode was the only real consumer of process_ledger and it was
only there to process a Blocktree. Blocktree is a tree, and a
ledger is a sequence, so something's clearly not right here.
Drop all other dependencies on process_ledger (only one test) so
that it can be fixed up in isolation.
2019-02-16 08:07:26 -07:00
38aed0c886
Bump serde_derive from 1.0.87 to 1.0.88
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.87 to 1.0.88.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.87...v1.0.88 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-02-16 04:57:32 -08:00
02801b3e75
Bump serde from 1.0.87 to 1.0.88
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.87 to 1.0.88.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.87...v1.0.88 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-02-16 05:02:10 -07:00
b79d361e6c
Add --entry-stream support
2019-02-15 22:52:27 -08:00
9eb8b67b5c
Install blockexplorer dependencies
2019-02-15 20:17:46 -08:00
132c664e18
No longer modify external userdata
2019-02-15 18:36:55 -07:00
288645aeb7
Add rewards integration test
2019-02-15 18:36:55 -07:00
55f06f5bad
Make vote_program available to reward_program tests
...
Making `solana_vote_program` is not an option because
then vote_program's entrypoint conflicts with reward_program's
entrypoint.
This unfortunately turns the SDK into a dumping ground for all
things shared between vote_program and other programs. Better
would be to create a solana-vote-api crate similar to the
solana-rewards-api crate.
2019-02-15 18:36:55 -07:00
a2cb18bfe9
Only require voting account to be signed
2019-02-15 18:36:55 -07:00
d35b3754a2
Reorg
...
Now clients can use all the libraries to create transactions
and disect account data without needing to be constrained about
what can be compiled into a shared object or BPF.
Likewise, program development can move forward without being
concerned with bloating the shared object.
2019-02-15 18:36:55 -07:00
7f3aca15dd
Add a library for creating Rewards transactions
...
And move out of the SDK
2019-02-15 18:36:55 -07:00
2c5cbaff25
Add unit-test for Rewards program
2019-02-15 18:36:55 -07:00
134cd7ab04
Add Rewards program
2019-02-15 18:36:55 -07:00
c74b8b6df3
Add a design for leader schedule rotation and genesis. ( #2714 )
...
Leader schedule rotation.
2019-02-15 16:34:34 -08:00
573116e259
Remove count_last_ids API
2019-02-15 11:05:41 -08:00
71ab030ea4
Fiddle with timeouts to make CI happy
2019-02-14 18:40:31 -08:00
c4125b80ec
Reduce max_tick_height to speed up CI
2019-02-14 18:40:31 -08:00
626a381ddc
Collect and re-forward packets received while TpuForwarder is shutting down
2019-02-14 18:40:31 -08:00
5333bda234
test_3_partitions is unstable, ignore
2019-02-14 17:30:42 -08:00
cceeb8e52d
On leader rotation forward any unprocessed transaction packets to the new leader
2019-02-14 14:49:48 -08:00
94a0d10499
Avoid overrunning slot0
2019-02-14 14:49:48 -08:00
3f6aba23dd
Add custom BlocktreeConfig for bad tests that break with the default
2019-02-14 14:49:48 -08:00
cd9dac4c7e
Use a reasonable max_tick_height
2019-02-14 14:49:48 -08:00
f478894729
Revert "Set DEFAULT_TICKS_PER_SLOT = 32 to stabilize integration tests"
...
This reverts commit 2d2572d2cb
.
2019-02-14 14:49:48 -08:00
97790480c9
Increase poll_for_signature retry timeout
2019-02-14 14:49:48 -08:00
9643c39bf6
Fix slot in block event
2019-02-14 14:25:54 -08:00
0a08d40237
fix repair service to support multinode tests that depend on repairs
2019-02-14 13:37:55 -08:00
d029997aef
add parent slot to broadcast
2019-02-14 13:37:55 -08:00
ceb27b431e
Add tree test to test multiple chaining children
2019-02-14 13:37:55 -08:00
d3761c2435
Change definitions in book to match current changes
2019-02-14 13:37:55 -08:00
b25d8ce764
Comment out repair service tests, to be fixed in another PR
2019-02-14 13:37:55 -08:00
34da362ee6
fix blocktree tests
2019-02-14 13:37:55 -08:00
de6109c599
replace num_blocks with parent block
2019-02-14 13:37:55 -08:00
736f08815e
Add protocol request for requesting the highest blob in a slot ( #2759 )
2019-02-14 12:47:21 -08:00
106645d9bd
add message terminator (newline) to socket writer output to ease client integration
2019-02-14 12:27:53 -08:00
c55ada2f26
Fix wallet test
2019-02-14 13:26:46 -07:00
4e4a1643c4
Boot SystemInstruction::Spawn
2019-02-14 13:26:46 -07:00
e1e84d4465
Don't reassign owner in Spawn
2019-02-14 13:26:46 -07:00
4a0009365e
Use Account::owner as loader for executable accounts
2019-02-14 13:26:46 -07:00
3849b8ece4
Bump bincode from 1.0.1 to 1.1.1 ( #2709 )
...
* Bump bincode from 1.0.1 to 1.1.1
Bumps [bincode](https://github.com/TyOverby/bincode ) from 1.0.1 to 1.1.1.
- [Release notes](https://github.com/TyOverby/bincode/releases )
- [Commits](https://github.com/TyOverby/bincode/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
* update autocfg 0.1.1 => 0.1.2
2019-02-14 12:46:22 -06:00
f2ab8f17c8
udpate staking section
2019-02-14 07:45:58 -07:00
48671a1728
Let native_loader own native executable accounts
2019-02-13 20:55:36 -08:00
72b6ec4aa8
Add native program account constructor
2019-02-13 20:55:36 -08:00
8790a92f07
Adjust create_counter to avoid imposing an AtomicUsize import on users
2019-02-13 20:24:04 -08:00
0f8ff07b51
tpu now hangs on to its cluster_info
2019-02-13 16:16:18 -08:00
dca73068c5
address review comments
2019-02-13 15:31:45 -08:00
4094e62ed3
propose architecture change for fullnode
2019-02-13 15:31:45 -08:00
7a0e897960
address review comments
2019-02-13 15:31:45 -08:00
e78fc74e03
Update fullnode diagram to reflect bank, voting and forks changes
2019-02-13 15:31:45 -08:00
5054e74f7f
update to edge book
2019-02-13 14:08:19 -07:00
72e6a39172
Fix the link to proposals chapter in the CONTRIBUTING guidelines
2019-02-13 14:08:19 -07:00
be73db13e0
Improve EntryStream trait and struct names
2019-02-13 13:07:30 -08:00
cbaba5cbf3
Review comments
2019-02-13 13:07:30 -08:00
c1447b2695
Add block event logic to EntryStreamStage
2019-02-13 13:07:30 -08:00
e58f08b60f
Refactor EntryStream
...
Co-authored-by: Sunny Gleason <sunny.gleason@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2019-02-13 13:07:30 -08:00
662d62f561
Always assert on the main test thread to abort quickly
2019-02-13 12:54:06 -08:00
cf4813a1ec
Add tests to transact with a cluster rotating at 1 tick per slot
2019-02-13 12:54:06 -08:00
b03636dc33
Bolster test_fullnode_rotate() checks
2019-02-13 12:54:06 -08:00
6187779d10
Wait for monitor threads to exit before Blocktree destruction
2019-02-13 12:54:06 -08:00
ddc8bfed29
Fix bad window_send_test channel logic
...
Test could hang if the blobs are not sent in the right order.
2019-02-13 11:23:54 -08:00
f1221d724d
Consolidate logic with entry helper function
...
Creates an entry and updates the hash.
Also cleanup blobs creation in test_replay
2019-02-13 11:23:54 -08:00
aec44e3761
Add design for the leader validator loop ( #2650 )
2019-02-13 12:00:43 -07:00
aed07f0f48
Bump jsonrpc-derive from 10.0.2 to 10.1.0 ( #2748 )
...
* Bump jsonrpc-derive from 10.0.2 to 10.1.0
Bumps [jsonrpc-derive](https://github.com/paritytech/jsonrpc ) from 10.0.2 to 10.1.0.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v10.0.2...v10.1.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
* Bump version for all jsonrpc crates; remove pubsub dependency in vote-signer
2019-02-13 10:44:22 -07:00
c178fc7249
Rewrite get_votes()
...
Panic if deserialize fails.
2019-02-13 10:05:28 -07:00
41554f433b
Fix VoteTransaction::get_votes()
2019-02-13 10:05:28 -07:00
863956d09c
Add multinode test for two nodes rotating at 1 tick per slot
2019-02-12 21:17:06 -08:00
7118178e2c
Correctly compute max_tick_height when starting up a node
2019-02-12 21:17:06 -08:00
1eabe66c85
setup_leader_validator: remove unnecessary ticks_per_slot parameter
2019-02-12 21:17:06 -08:00
2de0a9e453
Log on bogus blobs
2019-02-12 21:17:06 -08:00
0bb6940c1a
Faster exit for storage_stage client
...
Shorten the timeout and check for exit on every iteration
of fetching a last id.
2019-02-12 20:45:22 -08:00
e341b33f21
Remove ticks_per_slot from Blocktree::write_entries(), it already knows
2019-02-12 15:52:27 -08:00
6abdd6401d
clippy: passing BlocktreeConfig by ref is ok
2019-02-12 15:52:27 -08:00
6632c7026d
Pass a BlocktreeConfig into all ledger helper functions
2019-02-12 15:52:27 -08:00
c474cf1eef
Pass BlocktreeConfig around as a reference
2019-02-12 15:52:27 -08:00
e26cd2eb26
Make Genesis block handle extra tokens for the leader ( #2743 )
2019-02-12 15:49:23 -08:00
b33becabca
rename flag
2019-02-12 15:06:52 -08:00
3c8a8640aa
restructure test_broadcast_last_tick test to check for is_last_blob
2019-02-12 15:06:52 -08:00
a1b5ea9cb1
test for is_last_blob at end of broadcast
2019-02-12 15:06:52 -08:00
bc162637a6
Add is_last_blob flag to blob to signal the end of a slot
2019-02-12 15:06:52 -08:00
8f1b7c3fff
Enable test_replay ( #2741 )
...
* Enable test_replay
* Refactor get_last_id
* Fix test ledger path
2019-02-12 15:03:11 -08:00
be71f49d80
Change write_entries() and create_tmp_ledger() to take ticks_per_slot ( #2736 )
...
* Change write_entries() and create_tmp_ledger() to take ticks_per_slot
* PR nits
2019-02-12 13:14:33 -08:00
8b39eb5e4e
Replace Blob Ids with Forward property ( #2734 )
...
* Replace Blob Id with Blob forwarding
* Update simulation to properly propagate blobs
2019-02-12 10:56:48 -08:00
1173cf7ed4
review comments
2019-02-12 08:41:02 -08:00
b4fd141105
fix broken test
2019-02-12 08:41:02 -08:00
0002b5dd02
Write to ledger in BroadcastService
...
- Also disconnect the channel between TPU and TVU
2019-02-12 08:41:02 -08:00
709598541f
Remove stale TODO comment
2019-02-11 22:13:07 -08:00
aa781811af
Add mulitnode tests demonstrating leader rotation at 1 tick per slot
2019-02-11 19:50:33 -08:00
b595bf8f44
Set blob_index correctly when tick_height is at the last tick of a slot
2019-02-11 19:50:33 -08:00
f6979a090e
leader_scheduler: reduce the amount of special case handling for tick_height 0
2019-02-11 19:05:14 -08:00
2e1dcd84f9
Add Avalanche Simulation ( #2727 )
...
- No packet drops yet
- Optimistic retransmits without leader-id
2019-02-11 16:20:31 -08:00
144d321193
Remove Box for RPC pubsub subscriptions
2019-02-11 15:47:29 -08:00
d41dec9395
Make EntryStreamStage optional
2019-02-11 14:07:24 -08:00
f977327c7b
Move EntryStream into its own Tvu stage
2019-02-11 14:07:24 -08:00
aac1a58651
Try harder to keep LeaderSchedulerConfig and BlocktreeConfig in sync
2019-02-11 13:10:12 -08:00
095afdfe47
Merge leader_to_validator/validator_to_leader
2019-02-11 08:57:44 -08:00
4ae1783b97
Remove code duplication between leader_to_validator/validator_to_leader
2019-02-10 17:53:42 -08:00
cd92adb1c6
Stop sending metrics by default
...
`source scripts/configure-metrics.sh` can be used at any time to easily
activate metrics if desired for local development and test.
2019-02-10 17:24:45 -08:00
7dec40ff05
slot 0 now contains the same number of ticks as all subsequent slots
2019-02-10 16:34:10 -08:00
4b38ecd916
fix tpu tvu bank race ( #2707 )
...
* Fix tpu tvu bank race
* Test highlighting race between tvu and tpu banks during leader to leader transitions
2019-02-10 16:28:52 -08:00
02c0098d57
Less --verbose by default
2019-02-10 10:19:16 -08:00
1e58c585d3
Add retry_get_balance function
...
clients don't need to know about json
2019-02-10 09:08:16 -08:00
ed4e9febe0
Refactor wallet processing
...
Yuge functions
2019-02-10 09:08:16 -08:00
1c61415cee
Remove stale TODO. #1899 was resolved a while ago
2019-02-09 16:57:46 -08:00
c02625f91a
Ban Default::default()
2019-02-09 10:12:32 -08:00
da5b777ee7
Purge Default::default()
2019-02-09 10:12:32 -08:00
a6aaca814c
Rename enum Config to enum PohServiceConfig
2019-02-09 10:12:32 -08:00
ab3dd2a1b3
Integrate the blocktree proposal into the book ( #2704 )
2019-02-08 20:27:35 -07:00
7b7a2fc52b
Rename Appendix to API Reference
...
And move before the proposals, since all this stuff is already
implemented.
2019-02-08 18:08:00 -07:00
95b28d4d8c
Move now to after super majority time is calculated
...
'now' could end up being earlier than the supermajority calculated time.
Leading to underflow errors and thread panic.
2019-02-08 15:53:23 -08:00
1278396bd5
Cleanup consecutive entries code from window_service ( #2697 )
...
* Remove returning entries from db_ledger on insert
* Fix tests to check for correctness
* Delete generate_repairs and max_repair_entry_height
2019-02-08 14:19:28 -08:00
0e29868e34
add ticks_left_in_block ( #2694 )
...
* add ticks_left_in_block
* de-combine tests
2019-02-08 10:30:14 -08:00
0115a1f834
Remove unused SocketAddr
2019-02-08 10:23:39 -08:00
cf103add54
Remove old Tpu leader rotation shutdown mechanism
2019-02-08 09:07:35 -08:00
766af58cd8
Prune unnecessary test imports
2019-02-08 08:43:11 -08:00
5200435bab
Strip unused return type
2019-02-08 08:43:11 -08:00
56734dca3b
Align Tpu::new() and Tpu::switch_to_leader() arguments
2019-02-07 21:33:49 -08:00
dbaf8e66ab
Remove code duplication
2019-02-07 21:33:49 -08:00
6e7c5f205b
Rename db_ledger to blocktree ( #2698 )
2019-02-07 20:52:39 -08:00
e7df3cfe22
thin_client grooming: remove dead code, improve var names and error reporting
2019-02-07 19:41:58 -08:00
0e8540417f
Add get_next_last_id
2019-02-07 19:41:58 -08:00
c3ad0eebec
Clean up get_last_id()
2019-02-07 19:41:58 -08:00
c82ffaabdc
Rename, purge use of term delta
...
This would be a fine document to introduce the term delta, but
it looks like the content flows just fine without it.
2019-02-07 16:25:23 -07:00
4e6a9b029a
finalized -> frozen
2019-02-07 16:25:23 -07:00
3e519faaa8
Move to 80-char lines
2019-02-07 16:25:23 -07:00
e2eb7c1ba7
Render ASCII art
2019-02-07 16:25:23 -07:00
87ba5b865d
Fix markdown
2019-02-07 16:25:23 -07:00
992f2790e7
Cleanup
2019-02-07 16:25:23 -07:00
e1a099632e
fork design book
2019-02-07 16:25:23 -07:00
fd7db7a954
Support multiple forks in the ledger ( #2277 )
...
* Modify db_ledger to support per_slot metadata, add signal for updates, and add chaining to slots in db_ledger
* Modify replay stage to ask db_ledger for updates based on slots
* Add repair send/receive metrics
* Add repair service, remove old repair code
* Fix tmp_copy_ledger and setup for tests to account for multiple slots and tick limits within slots
2019-02-07 15:10:54 -08:00
5bb4ac9873
Cleanup
2019-02-07 16:09:04 -07:00
31b0d14856
wip, initial explanation on vote signer validator and stake owner relationship
2019-02-07 16:09:04 -07:00
952ab2bde5
Runtime fix
2019-02-07 11:30:05 -08:00
3c6af52a71
Fix pay-to-self Accounts bug ( #2682 )
...
* Add failing tests
* Fix tests
* Plumb AccountLoadedTwice error
* Fixup budget cancel actions to not depend on duplicate accounts
* Use has_duplicates
* Update budget-based golden
2019-02-07 12:14:10 -07:00
6317bec7aa
Avoid empty --features= arg to avoid unnecessary cargo building
2019-02-07 10:42:57 -08:00
eb3ba5ce2d
tmi: disable --verbose by default. | export V=1| to request verbosity
2019-02-07 10:42:57 -08:00
1f0b3f954a
leader_scheduler: replace older terminology with ticks, slots and epochs
2019-02-07 10:42:57 -08:00
cdb2a7bef3
Move runtime benchmark
2019-02-07 09:46:06 -08:00
f6515b2b6a
Remove top-level dependencies on solana-runtime's dependencies
2019-02-07 09:46:06 -08:00
5128d7d6c3
Move runtime.rs into its own crate
2019-02-07 09:46:06 -08:00
731e5e1291
Boot lua loader
...
Good fun, but unnecessary and I haven't been updating the rlua
dependency. If someone wants this, it can be developed outside
the solana repo.
2019-02-07 10:25:11 -07:00
cedee73548
Temporarily bump DEFAULT_TICKS_PER_SLOT to 64
...
See solana-labs/solana#2675
2019-02-07 09:16:43 -08:00
8136d52c0b
Whitelist the metrics-solana-com buildkite agent from docker container cleanup
2019-02-07 08:33:53 -08:00
d1945c29d7
Don't depend on solana_native_loader for IDs in the SDK
2019-02-07 08:23:44 -08:00
83b40e4f30
Inline assertions from overreaching helper
...
The assert_counters() helper creates unreadable tests and makes
us have to update every test any time a counter is added. Instead,
we can just assert the values of any particular counters the test
may have affected.
2019-02-07 08:43:52 -07:00
95ac6305bc
Remove unnecessary dependencies on fullnode mod
2019-02-06 21:31:48 -08:00
ab4828aae7
Replace role_notifiers tuple with two explicit fields
2019-02-06 21:31:48 -08:00
c506423e70
Remove superfluous imports
2019-02-06 21:31:48 -08:00
f0843fc5f1
NodeServices: de-pub, remove dead code
2019-02-06 21:31:48 -08:00
c87e035302
Remove multinode test dependency on Fullnode internals
2019-02-06 20:38:22 -08:00
abb9a72b27
Reduce Fullnode public API surface
2019-02-06 20:04:51 -08:00
acc6bf1564
Don't over complicate the solution
2019-02-06 19:55:12 -08:00
db688207a5
Add abort signals to tvu/tpu receivers
2019-02-06 19:55:12 -08:00
9681c4d468
Fix resource hogging when waiting for role transition
2019-02-06 19:55:12 -08:00
d9e2b94d7a
bank::new_with_leader_scheduler_config() - remove Option<>
2019-02-06 19:47:09 -08:00
f789038baa
Consolidate fullnode ledger helpers
2019-02-06 19:47:09 -08:00
2e23b03f94
Remove dead code
2019-02-06 19:47:09 -08:00
5181a2a9b1
Guard against invalid tick heights
2019-02-06 14:23:10 -08:00
2d2572d2cb
Set DEFAULT_TICKS_PER_SLOT = 32 to stabilize integration tests
2019-02-06 14:23:10 -08:00
fa553029d5
Temporarily disable test_validator_to_leader_transition
2019-02-06 14:23:10 -08:00
c986a20bcf
Disable unstable test: test_multi_node_dynamic_network
2019-02-06 14:23:10 -08:00
c5a74ada05
leader_scheduler: remove bootstrap_height
2019-02-06 14:23:10 -08:00
73979d8f5a
Remove sleep, fund the vote account faster
2019-02-06 14:23:10 -08:00
f90d96367d
Add Fullnode::run() to optionally manage node role transitions automatically
2019-02-06 14:23:10 -08:00
5f565c92c9
cargo incremental builds breaks Rust BPF, locally disable it ( #2674 )
2019-02-06 13:59:10 -08:00
7452486c72
Kill running docker containers left over from a previous job
2019-02-06 13:57:11 -08:00
afdf0efd31
Disable bpf_rust temporarily
2019-02-06 13:31:35 -08:00
7fc271ef97
Bump stable timeout
2019-02-06 13:31:35 -08:00
582ba4f173
Move economics into the proposed changes
...
Once this is implemented, we'll move it into the "A Solana Cluster"
section.
2019-02-06 09:29:52 -07:00
0229c97071
Move economics images into img/
...
And flip the exe bit
2019-02-06 09:29:52 -07:00
c0b398c7c9
Fix markdown and typo
2019-02-06 09:29:52 -07:00
549f9676f1
Allow validators to accumulate credits for voting
2019-02-05 14:24:49 -07:00
6248624ee7
Bump jsonrpc-derive from 10.0.1 to 10.0.2
...
Bumps [jsonrpc-derive](https://github.com/paritytech/jsonrpc ) from 10.0.1 to 10.0.2.
- [Release notes](https://github.com/paritytech/jsonrpc/releases )
- [Commits](https://github.com/paritytech/jsonrpc/compare/v10.0.1...v10.0.2 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-02-05 08:17:25 -07:00
0025d36880
Move solana proper back to paritytech/jsonrpc
2019-02-04 22:17:23 -07:00
4985b682c3
Move vote_signer back to paritytech/jsonrpc
2019-02-04 22:17:23 -07:00
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
3feda8a315
ReplayStage asking ledger for updates ( #2597 )
...
* Modify replay stage to ask db_ledger for updates instead of reading from upstream channel
* Add signal for db_ledger to update listeners about updates
* fix flaky test
2019-02-04 15:33:43 -08:00
5375c420c1
headers style have been adjusted
2019-02-04 14:25:26 -07:00
ac9f6a77c9
Fix compilation errors due to missing "features" section in Cargo.toml
...
- e.g. breaks in compilations during testnet deployment with Cuda enabled
2019-02-04 11:30:40 -08:00
58f4e0653a
Updates to edge testnet dashboard
...
- Update leader/validator pipeline stage graph, as any node can be
doing either of the roles
- Update network stats graphs to remove hostname based filtering
2019-02-04 11:08:39 -08:00
03e6a56b3c
Add datetime to EntryStream message
2019-02-04 11:03:54 -08:00
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
98e893c69b
Avoid empty --features= arg to avoid unnecessary cargo building
2019-02-02 20:08:49 -08:00
fea480526b
Add macOS tip
2019-02-02 20:08:49 -08:00
4aa6695a13
source ulimit-n.sh so it applies to the current shell
2019-02-02 20:08:49 -08:00
a7e5423ede
Set ulimit -n
2019-02-02 20:08:49 -08:00
3ff8bbcf65
Cleanup economic design ( #2649 )
...
* Remove section numbers
* Fix all hyperlinks
* Add detail on protocol-designated minimum tx fee amount
2019-02-02 18:35:18 -08:00
9d34ded5f3
Update and fix test_broadcast_last_tick ( #2644 )
2019-02-01 17:13:15 -08:00
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
0a9226ec8e
Use voting helper
2019-02-01 16:03:46 -08:00
9c07a8c26a
VoteProgram -> VoteState
2019-02-01 16:03:46 -08:00
6058bfb687
Simplify voting helpers
2019-02-01 16:03:46 -08:00
7a6d730db3
Skip retransmit when node is leader ( #2625 )
...
* Skip retransmit when node is leader
* Fix window test
2019-02-01 14:30:26 -08:00
2985988f0d
Re-enable test_broadcast_last_tick ( #2639 )
2019-02-01 14:23:20 -08:00
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
85c8af08b3
Link dangling program cuda features to the src/ crate
2019-02-01 12:42:46 -08:00
21c09073a1
Add help script to easily run all integration tests
2019-02-01 12:42:46 -08:00
40acaee446
Remove unnecessary abstractions and helper functions
2019-02-01 12:42:46 -08:00
d9a22705ce
Broadcast Service should handle SendError
...
- After TVU shuts down, the brroadcast service will get a SendError
when it tries to send blobs to it
2019-02-01 12:28:00 -08:00
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
1b3e7f734a
Update solana-vote-signer to Rust 2018
2019-02-01 12:12:26 -07:00
0e58023794
Bump serde_json from 1.0.37 to 1.0.38
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.37 to 1.0.38.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.37...v1.0.38 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-02-01 10:06:21 -07:00
4fb9c8a547
Bump timeout
2019-02-01 07:11:17 -08:00
43cce3a8fc
speling
2019-02-01 07:11:17 -08:00
344427c1dc
Update to rust nightly 2019-01-31
2019-02-01 07:11:17 -08:00
82a2080e45
Rename VoteSignerProxy to VotingKeypair
...
Works just like a normal Keypair, but will only sign voting
transactions.
2019-02-01 07:11:17 -07:00
9a4abe96c7
Reduce VoteSignerProxy to KeypairUtil
2019-02-01 07:11:17 -07:00
d87c2eb903
Fullnode::new() - provide FullnodeConfig as a ref
2019-01-31 21:12:36 -08:00
65708f234d
Remove unused import
2019-01-31 21:12:36 -08:00
b6b179af97
Fix bad merge
2019-01-31 20:15:04 -08:00
37003da854
Fix potential of checking tvu bank for truth when its behind ( #2614 )
...
* Fix race between tpu and tvu, where tvu bank is not caught up to tpu bank
* Add test
* Cleanup Fullnode tests
2019-01-31 19:21:02 -08:00
3f323aba1a
Search and destroy loitering processes from previous CI runs
2019-01-31 16:17:44 -08:00
29889a90e5
ignore ledger-tool/target ( #2624 )
2019-01-31 16:09:56 -08:00
ed478675ba
Push and query the ClusterInfo for votes. ( #2622 )
2019-02-01 05:21:29 +05:30
9767468b7f
Remove unneeded Option
2019-01-31 13:53:59 -08:00
8ba1d5f426
treat genesis special ( #2615 )
...
* treat genesis special
* fix poh_recorder to understand new world order
2019-01-31 13:53:08 -08:00
84567d36cf
Leader scheduler groundwork for Blocktree ( #2599 )
...
* Groundwork for entry tree, align constants with definitions in the book
* Fix edge case in test, node can keep generating ticks between handle_role_transition and exit() call
2019-01-31 13:44:24 -08:00
32162ef0f1
Connect TPU's broadcast service with TVU's blob fetch stage ( #2587 )
...
* Connect TPU's broadcast service with TVU's blob fetch stage
- This is needed since ledger is being written only in TVU now
* fix clippy warnings
* fix failing test
* fix broken tests
* fixed failing tests
2019-01-31 13:43:22 -08:00
2dd20c38b2
fix the test
2019-01-31 12:55:17 -08:00
aa1bd603e6
Fix recvmmsg test for timeout
2019-01-31 12:55:17 -08:00
e104941569
Add design proposal for reliable vote transmission ( #2601 )
...
* reliable vote transmission design proposal
* summary
* comments
2019-01-31 07:34:49 -08:00
2754ceec60
StatusDeque split into separate objects with their own root checkpoint strategy ( #2613 )
...
Split up StatusDeque into different modules
* LastIdQueue tracks last_ids
* StatusCache keeps track of signature statuses
* StatusCache stores success as a bit in a bloom filter
* Overhead for 1m Ok transactions is 4mb in memory
* Less concurrency between the objects, last_id and status_cache are read and written to at different points in the pipeline
* Each object has its own strategy for merging into the root checkpoint
2019-01-31 06:53:52 -08:00
609e915169
Fix clippy warning
...
Always pass Arcs by reference. Then you'll only need to clone()
to cross thread boundaries.
2019-01-30 21:59:05 -07:00
11f1c00ca7
Only send pubkey to ReplayStage
2019-01-30 21:59:05 -07:00
a74b24fdf0
Only store the fullnode's pubkey
...
Only vote_signer is used for signing
2019-01-30 21:59:05 -07:00
e25992a011
Always give Fullnode a vote signer
...
This will allow us to use the the signer's pubkey as the node id.
Disable voting with a configuration option.
2019-01-30 21:59:05 -07:00
00bb5925e1
use a .gitignore'd file name for transactionCount ( #2609 )
2019-01-30 20:19:10 -08:00
1b50fbbc90
remove Result<> from Blob accessors, add parent ( #2608 )
...
* remove Result<> from Blob accessors, add parent
* update chacha's golden
* fixup benches
2019-01-30 20:18:28 -08:00
a746969995
Don't set socket as blocking in recvmmsg for non Linux targets ( #2611 )
...
* Don't set socket as blocking in recvmmsg for non Linux targets
- The user of the function is controling this flag
* added a test
2019-01-30 19:47:53 -08:00
c536a0bf04
Remove mention of BCC
2019-01-30 18:00:04 -07:00
5b8e7bfcf2
s/voter/validator
2019-01-30 15:44:51 -07:00
3cbbceec78
rewarding
2019-01-30 15:44:51 -07:00
e684fafb68
fmt
2019-01-30 15:44:51 -07:00
651342b3db
cleanup fork selection
2019-01-30 15:44:51 -07:00
c01290438f
Move virtual genesis tick into the ledger proper as entry 0
2019-01-30 14:02:07 -08:00
9e9c82869a
create_tmp_sample_ledger() need not return the genesis block
2019-01-30 14:02:07 -08:00
494b143453
Delete create_tmp_genesis
2019-01-30 14:02:07 -08:00
8cc1cde0fe
create_tmp_sample_ledger() now returns entry_height and last_id
2019-01-30 14:02:07 -08:00
883fc39c80
Rename EntryTree to Blocktree
2019-01-30 13:29:34 -07:00
1c0758e3bd
Accounts refactoring for forking.
...
* Move last_id and signature dup handling out of Accounts.
* Accounts that handle overlays.
2019-01-30 11:36:49 -08:00
668d353add
Inline VoteSigner::new_vote_account
...
So that we can stop using the validator keypair to fund the
the voting account.
2019-01-30 10:42:42 -07:00
06a1681fdc
Remove redundant annotations
2019-01-30 10:42:42 -07:00
a16e41002e
reduce gossip nodes in concurrent tests for CI
2019-01-30 10:26:28 -07:00
16e705dc75
Boil away unneeded Fullnode::new_* functions
2019-01-29 20:10:10 -08:00
b52228feb9
Remove assumption that the mint starts with 10_000 tokens
2019-01-29 20:10:10 -08:00
25f25d0f82
new_fullnode: don't return the genesis_block, nobody uses it
2019-01-29 17:51:07 -08:00
85e7046caf
Use signer for signing transactions, not constructing them
2019-01-29 18:35:05 -07:00
c741a960b9
Generalize Transaction::new to accept anything that implements KeypairUtil
2019-01-29 18:35:05 -07:00
34c8b2cc2f
Remove redundant Arc
2019-01-29 18:35:05 -07:00
278effad49
Implement KeypairUtil for VoteSignerProxy
2019-01-29 18:35:05 -07:00
a0bed5375d
remove println!, add check to keep it out ( #2585 )
...
* remove debugging prints
* remove println!, add check to keep it out
2019-01-29 16:02:03 -08:00
9eecd549e4
Bump rand from 0.6.4 to 0.6.5 ( #2564 )
...
* Bump rand from 0.6.4 to 0.6.5
Bumps [rand](https://github.com/rust-random/rand ) from 0.6.4 to 0.6.5.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/0.6.4...0.6.5 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
* Update rand_core, rand_jitter, rand_os
fixes compile errors due to type mismatch from differing versions
2019-01-29 17:44:34 -06:00
a2c3369713
storage_state field doesn't actually exist
2019-01-29 12:34:59 -08:00
1f9ab7f58f
copy bank for TPU
2019-01-29 12:11:48 -08:00
3e1a926aa6
wip
2019-01-29 12:11:48 -08:00
57f82934f2
Bump hex-literal from 0.1.1 to 0.1.2 ( #2565 )
...
Bumps [hex-literal](https://github.com/RustCrypto/utils ) from 0.1.1 to 0.1.2.
- [Release notes](https://github.com/RustCrypto/utils/releases )
- [Commits](https://github.com/RustCrypto/utils/compare/opaque-debug_v0.1.1...hex-literal-v0.1.2 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-29 13:15:49 -06:00
f3a8aec64d
Bump tokio from 0.1.14 to 0.1.15 ( #2557 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 0.1.14 to 0.1.15.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Changelog](https://github.com/tokio-rs/tokio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-0.1.14...tokio-0.1.15 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-29 13:12:50 -06:00
e2e5bc65a9
Bump assert_cmd from 0.10.2 to 0.11.0 ( #2580 )
...
* Bump assert_cmd from 0.10.2 to 0.11.0
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd ) from 0.10.2 to 0.11.0.
- [Release notes](https://github.com/assert-rs/assert_cmd/releases )
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v0.10.2...v0.11.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >, Mark Sinclair Jr <mark@solana.com >
* Replace use of removed `Command::main_binary`
assert_cmd 11.0 removed this. replaced with
`Command::cargo_bin(env!("CARGO_PKG_NAME"))`
2019-01-29 13:10:48 -06:00
df136578d4
Remove unnecessary FullnodeConfig::rpc_port option
2019-01-29 10:22:39 -08:00
ae7f169027
Add FullnodeConfig struct to Fullnode::new* functions
...
This avoids having to touch *every* Fullnode::new* call site when
a new fullnode option is added
2019-01-29 09:42:48 -08:00
6da7a784f2
Stream entries ( #2582 )
...
* Add entry streaming option
* Fix tests
* Remove obsolete comment
* Move entry stream functionality to struct w/ trait in order to test without i/o
2019-01-29 00:21:27 -08:00
12cddf725e
Harmonize Fullnode::new* function arguments
2019-01-28 22:37:56 -08:00
d8861c2a5f
Wait until the leader shows up on gossip
2019-01-28 22:37:56 -08:00
145fb3675d
check for debugging lint in CI ( #2578 )
...
* check for debugging lint in CI
* nit
* add TODO
2019-01-28 18:32:30 -08:00
77e8cb2718
Update nominal() checks for json genesis block
2019-01-28 17:08:59 -08:00
a8ea6471e7
Add ledger-tool tests to CI
2019-01-28 17:08:59 -08:00
bfaf5634a1
.unwrap() in tests instead of assert!()ing .is_ok() for a better failure message
2019-01-28 16:10:32 -08:00
53afa64634
Remove storage_state from the bank
...
Construct in TVU and pass to RPC and StorageStage instead.
2019-01-28 15:41:41 -08:00
c9bf9ce094
eliminate re-use of a TX here, we're testing for empty account balance ( #2576 )
2019-01-28 15:21:08 -08:00
a2e29fa71f
Alphabetize and make consistent fullnode arguments
2019-01-28 14:32:32 -08:00
637f58364a
remove io from the tests
2019-01-28 13:52:13 -08:00
1bd04b26e5
Remove ignore flag from rpc_pubsub tests
2019-01-28 13:52:13 -08:00
29ef9370a6
Remove LeaderSchedulerConfig options
2019-01-28 13:51:01 -08:00
2262f279d5
Reduce boilerplate code with helper function to create
...
fullnode/bank/genesis
2019-01-28 13:48:58 -08:00
e4f477cf90
Retype num_ticks as u64 to reduce casting
2019-01-28 11:24:50 -08:00
33f921235d
Improve message-signing ergonomics
2019-01-26 14:57:22 -07:00
1bae87d4b3
Add unit-test-friendly VoteSignerProxy constructor
2019-01-26 14:56:49 -07:00
1e43fb587e
Rename the module that now contains only GenKeys
2019-01-26 06:57:24 -08:00
d65e7b9fcc
Speedup rotation ( #2468 )
...
Speedup leader to validator transitions
2019-01-26 13:58:08 +05:30
4bb6549895
Genesis block is now a json file
2019-01-25 09:05:15 -08:00
06e3cd3d2a
Bump serde_json from 1.0.36 to 1.0.37
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.36 to 1.0.37.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.36...v1.0.37 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-25 03:34:06 -08:00
e9e01557b7
fix leaked threads from unclosed fullnode
2019-01-25 03:02:49 -08:00
e0f046b7a5
Optimize Transaction/Instruction serialization with custom routine ( #2515 )
...
* Optimize transaction serialization with custom routine to reduce the serialized size.
* Update serialized_size to accept self as parameter
* Optimize serialize / deserialize operations
2019-01-24 21:14:15 -08:00
9845aec007
Rename data_replicator tests module
...
replicator name is associated with storage replicators, so
data_replicator sounds like that but it is actually a bunch of gossip
tests.
2019-01-24 15:49:55 -08:00
81c82b5af9
Add test for ignore ProgramErrors in process_entries ( #2544 )
2019-01-24 13:37:12 -08:00
a9b083e585
Set fetch stage socket non blocking to false while during recv ( #2542 )
...
* Set fetch stage socket non blocking to false while during recv
* remove ProgramError changes from this PR
2019-01-24 12:46:40 -08:00
9abc500269
Fix BPF C tests and run as part of CI ( #2540 )
2019-01-24 12:15:37 -08:00
b9eb7e14e6
Use clap arg conflicts check
2019-01-24 10:47:37 -08:00
b7be5b9a7a
Add no-signer argument
2019-01-24 10:47:37 -08:00
ce41760fdd
Update definitions of block and slot
2019-01-23 18:22:20 -08:00
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
d4eb69ca14
Bump reqwest from 0.9.8 to 0.9.9
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.8 to 0.9.9.
- [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.9.8...v0.9.9 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-23 17:24:48 -08:00
aba9df8457
Remove get_stake placeholder
2019-01-23 17:03:20 -08:00
6aa80e431d
increase startup timeout for localnet sanity ( #2534 )
2019-01-23 15:06:08 -08:00
bae7612f36
Revert "Wait until the node successfully boots"
...
This reverts commit e84f1f6de7
.
2019-01-23 11:27:08 -08:00
a0bc8b8af3
BPF programs can support up to 5 arguments ( #2528 )
2019-01-23 09:55:08 -08:00
73930b5eac
Unfold log on errors
2019-01-23 07:48:59 -08:00
fbeba259b3
Reorg tests
2019-01-23 00:02:30 -08:00
d1bedeae13
Wait for nodes to finish booting before running sanity checks
2019-01-23 00:02:30 -08:00
e84f1f6de7
Wait until the node successfully boots
2019-01-23 00:02:30 -08:00
cc88f9bcd6
Add mechanism to determine when a node has finished booting
2019-01-23 00:02:30 -08:00
f630b50902
Check for new vote account signature explicitly for better error reporting on failures
2019-01-23 00:02:30 -08:00
9a7082d0d5
Report stuck last_id in error message
2019-01-23 00:02:30 -08:00
8dc9089611
Display confirmation time
2019-01-23 00:02:30 -08:00
222d2d7953
Verify transaction count as reported by the bootstrap-leader node is advancing
2019-01-23 00:02:30 -08:00
27c10d4468
cargo fmt
2019-01-22 21:56:04 -08:00
a17467aefd
Lower level of message from storage_stage
2019-01-22 21:23:10 -08:00
73b10c196e
Disable integration test that fails in CI
2019-01-22 19:24:44 -08:00
965dbbe835
stop enumeration if next entry is disjoint, band-aid ( #2518 )
...
* stop enumeration if next entry is disjoint, band-aid, fies #2426
* clippy
2019-01-22 15:50:36 -08:00
e3ae10bacc
User-initiated builds now select the correct channel
2019-01-22 14:23:46 -08:00
fcda94b673
Use beta channel for stable dashboard once a beta tag exists
2019-01-22 12:22:57 -08:00
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
122a5b2f69
dedup the
2019-01-22 09:47:43 -08:00
dea20248c4
Increase job timeout
2019-01-22 09:35:03 -08:00
ae90ac238c
Use unique log file for each additional (-x/-X) fullnodes
2019-01-22 08:27:36 -08:00
3b0ca9f478
Add rolling update test
2019-01-22 08:27:36 -08:00
61e79e6d02
Add -c to resume a previous run
2019-01-22 08:27:36 -08:00
1cdab81a3c
Add -R option to restart the cluster incrementally
2019-01-22 08:27:36 -08:00
dca0ba6a5d
Use -X for dynamic fullnodes, to ensure keypair remains constant during iterations
2019-01-22 08:27:36 -08:00
d666ebc558
Add tests for vote_program
2019-01-21 18:05:52 -07:00
c84b796e17
remove dead code ( #2512 )
2019-01-21 16:24:11 -08:00
7204bb40bf
Don't fail process_entries with ProgramErrors ( #2509 )
2019-01-21 15:26:06 -08:00
637d5c6691
Fix rpc port argument name
2019-01-21 16:25:51 -07:00
3c86f41769
Run buildkite iterations in parallel
2019-01-21 14:04:19 -08:00
f37eb533f1
Replicator timeout ( #2480 )
...
* Add timeout to Replicator::new; used when polling for leader
* Add timeout functionality to replicator ledger download
Shares the same timeout as polling for leader
Defaults to 30 seconds
* Add docs for Replicator::new
2019-01-21 15:37:41 -06:00
6e8b69fc88
Cleanup leader_addr, it's really entrypoint_addr
2019-01-21 13:06:30 -08:00
cb23070dfe
Remove sleeps on fullnode spin-up in integration tests
2019-01-21 13:27:31 -07:00
5d9d83d312
Less clones
2019-01-21 12:56:27 -07:00
823252dd41
Cleanup terminology
2019-01-21 12:56:27 -07:00
35764225ed
Remove socket from rpc test and move integration test
2019-01-21 12:29:04 -07:00
c7e5006bcf
Remove assert!()s that hide error codes, making failure debug harder
2019-01-21 10:36:56 -08:00
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
e6030d66eb
split load+execute from commit in bank, insert record between them in TPU code ( #2487 )
...
* split load+execute from commit in bank, insert record between them in TPU code
* clippy
* remove clear_signatures() race with commit_transactions()
* add #[test] back
2019-01-21 10:17:04 -08:00
6611188edf
Move subscriptions to rpc_pubsub ( #2490 )
...
* Move subscriptions to rpc_pubsub
- this helps avoid recreating pubsub_service on node's role change
* fixed tests and addressed review comments
* fix clippy errors
* address review comments
2019-01-21 09:59:09 -08:00
abbb037888
Implement storage contract logic
2019-01-21 08:36:49 -08:00
132d59ca6a
new_bank_from_db_ledger need not be public
2019-01-21 08:11:13 -08:00
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
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
648b6597bf
configure ulimit
2019-01-20 10:54:12 -08:00
5b73a8eceb
Rework fullnode boot sequence
2019-01-19 21:35:46 -08:00
514bf32b99
Enable ledger verification for non-perf testnets
2019-01-19 20:28:56 -08:00
2073188345
Fullnode no longer fails to process a ledger with ProgramErrors in it
2019-01-18 21:06:50 -08:00
c0b472292b
Revert "Entries that result in a ProgramError are still valid entries"
...
This reverts commit ab23b41998
.
2019-01-18 21:06:50 -08:00
1b15fd1da6
Fix build, add new parameter to new_with_bank
2019-01-18 15:07:46 -08:00
6883ea0944
Give the fullnode one million tokens as a #2355 workaround
2019-01-18 13:42:04 -08:00
303289777f
rsync/airdrop only if ledger doesn't exist (eg, on first run after setup.sh)
2019-01-18 13:42:04 -08:00
a8bf00fe20
Timeout if a leader is not found within 30 seconds
2019-01-18 13:42:04 -08:00
6282c53fe5
Add iterations with leader rotation enabled and periodic restarts
2019-01-18 13:42:04 -08:00
dac28e0961
Temporarily ignore wallet sanity failures when leader rotation is enabled
...
This commit should be reverted once https://github.com/solana-labs/solana/issues/2474 is fixed
2019-01-18 13:42:04 -08:00
4f86563352
Entries that result in a ProgramError are still valid entries
2019-01-18 13:42:04 -08:00
818afc68c1
Report number of entries and last_id on successful verification
2019-01-18 13:42:04 -08:00
443d8ce7c4
Add option to restart the cluster during iterations
2019-01-18 13:42:04 -08:00
da5cb0b012
Verify ledger before starting up the fullnode
2019-01-18 13:42:04 -08:00
922ffdfc28
Remove unnecessary ledger/ subdirectory
2019-01-18 13:42:04 -08:00
2f1107ff4f
Add randomness to broadcast
2019-01-18 13:05:35 -08:00
1fd7bd7ede
Storage fixes
...
* replicators generate their sample values
* fixes to replicator block height logic
2019-01-18 13:05:35 -08:00
c0c38463c7
Remove hard coded ports
2019-01-17 23:34:21 -08:00
c1e142d1dc
Revert "test_rpc_new fails locally, ignore for now"
...
This reverts commit 0c46f15f94
.
2019-01-17 23:34:21 -08:00
6933f2bad1
Remove stale TODO
2019-01-17 23:22:07 -08:00
b03d1d8894
Enable integration test logging for better debug on CI failure
2019-01-17 23:14:18 -08:00
8e4a86e329
Recovery multinode tests
2019-01-17 23:14:18 -08:00
1f87d9ba4a
add bloom benchmarking, perf improvement from Fnv ~= 8X ( #2477 )
...
* add bloom benchmarking, perf improvement from Fnv ~= 8X
* have a look at bits.set()
* ignore new benches to pacify CI (solana_upload_perf?)
2019-01-17 18:22:21 -08:00
14267e172d
Add local drone integration test
2019-01-17 15:06:04 -08:00
95e83cfe3f
Add tested process_drone_request method
2019-01-17 15:06:04 -08:00
e74574706e
Record Transactions with program errors in the ledger, they paid the fee
2019-01-17 13:55:56 -08:00
b381d9e06d
add pngs and formatting
2019-01-17 14:30:20 -07:00
a416b53d11
file permissions
2019-01-17 14:30:20 -07:00
6fd13e3af0
rename files
2019-01-17 14:30:20 -07:00
4b7dc8200c
reference reformatting
2019-01-17 14:30:20 -07:00
b83279848a
html table to md table
2019-01-17 14:30:20 -07:00
a48b278c10
add economic design sections to TOC
2019-01-17 14:30:20 -07:00
75e19f4f0f
Add build script
2019-01-17 12:38:04 -08:00
1a5bf0c689
Remove sleep
2019-01-17 12:38:04 -08:00
3e245f16c0
Add wallet deploy integration test
2019-01-17 12:38:04 -08:00
2698b7614b
Add wallet deploy unit tests, incl program test fixture
2019-01-17 12:38:04 -08:00
b296a9a0c7
Rename slice to segment to match book terminology
2019-01-17 10:19:45 -08:00
9c8e853567
Rename --rpc arg to --rpc-port to match wallet cli
2019-01-17 09:04:57 -08:00
825d8ef6c9
Add ability to use the RPC endpoint from a node other than the bootstrap leader
2019-01-17 09:04:57 -08:00
da1201c552
Add --rpc-port option to select a custom RPC port
2019-01-17 09:04:57 -08:00
e0c05bf437
Minor clean up
2019-01-17 09:04:57 -08:00
a84b6bc7e4
Overhaul wallet rpc/drone command-line arguments
2019-01-17 08:36:05 -08:00
00c4c30d72
Fix testnet bootup issue ( #2465 )
...
* Fix testnet bootup issue
* address review comments
2019-01-16 19:18:32 -08:00
72c7139d8c
Allow chained BudgetExpr via indirection ( #2461 )
...
* Allow chained BudgetExpr via indirection
Change `And`, `Or`, and `After` expressions to contain
`Box<BudgetExpr>`s instead of directly holding payments
* run cargo fmt
2019-01-16 18:51:50 -06:00
e287ba1a7e
Bump bv from 0.10.0 to 0.11.0
...
Bumps [bv](https://github.com/tov/bv-rs ) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/tov/bv-rs/releases )
- [Changelog](https://github.com/tov/bv-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tov/bv-rs/compare/0.10.0...0.11.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-16 16:47:35 -08:00
8e67a18551
Add network timeouts and fix tests
...
test_rpc_send_tx could fail if it didn't succeed on the first try
* add some retries to consistently pass
2019-01-16 15:59:40 -08:00
590b88f718
Bump serde_json from 1.0.35 to 1.0.36
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.35 to 1.0.36.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.35...v1.0.36 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-16 15:57:01 -07:00
00ee8813f7
Add initial build step to getting started ( #2455 )
2019-01-16 14:46:57 -06:00
e76f2ea89c
Add record to runtime pipeline
2019-01-16 13:39:30 -07:00
c9f57c2d96
Review feedback
2019-01-16 13:38:32 -07:00
438d36341d
Add note about implications on previous blocks
2019-01-16 13:38:32 -07:00
3ab54b1591
Review feedback
2019-01-16 13:38:32 -07:00
77a2f186ee
Add block confirmation proposal
2019-01-16 13:38:32 -07:00
526344c9ac
Log signature status uniformly
2019-01-16 12:17:46 -08:00
f8bd19f5db
Log the time it look to process the ledger for easier log inspection
2019-01-16 10:45:47 -08:00
e4c6e4bf26
Report full node info before starting/updating network
2019-01-16 10:24:00 -08:00
8783563176
Report full node info before running sanity
2019-01-16 10:24:00 -08:00
6015a0ff15
Add info command
2019-01-16 10:24:00 -08:00
63b76c32f9
80-char lines
2019-01-16 09:40:45 -08:00
c9264ee12c
Cleanup fanout docs and ASCII art
2019-01-16 09:40:45 -08:00
0d7b1a84cb
Remove unused timeout wallet arg and config field
2019-01-16 09:20:45 -08:00
81e17bad40
Failure to write a datapoint should not be fatal
2019-01-16 09:08:47 -08:00
97d90b99e2
Describe Data-Plane fanout and distribution ( #2008 )
2019-01-16 21:38:10 +05:30
03d4d1cb36
Store and resend votes if leader's TPU port is unknown ( #2438 )
...
* Store and resend votes if leader's TPU port is unknown
* fix build errors
* fix failing tests
2019-01-16 06:14:55 -08:00
3282cb85ae
Refactor request_and_confirm_airdrop() to use send_and_confirm_tx()
2019-01-15 19:29:59 -08:00
9354e797b6
Cleanly handle balance underflows
2019-01-15 19:29:59 -08:00
3f9c2bc33b
Resend transactions a couple times before giving up
2019-01-15 16:07:32 -08:00
4369c1a113
RPC port is no longer reset on leader-to-validator transition
2019-01-15 16:06:56 -08:00
b1e57e2a30
Retry rpc requests on connection failures
...
Applied a blanket default retry count of 5, which seems like enough but
not excessive retries.
2019-01-15 15:30:10 -08:00
4d9489aeb1
Use RPC endpoint of the provided network entrypoint rather than searching for the leader
2019-01-15 15:13:57 -08:00
45c247fa5b
bloom for forking ( #2431 )
...
* bloom for forking
* clippy fixes
* remove bloom_hash_index
2019-01-15 13:56:54 -08:00
4e2663023b
Bump nix from 0.12.0 to 0.13.0
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/nix-rust/nix/releases )
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nix-rust/nix/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-15 14:35:22 -07:00
fa4608a95d
Change leader rotation time to a multiple of ticks per block ( #2414 )
...
* Change leader rotation time to a multiple of ticks per block
* fix component dependencies
* review comments
2019-01-15 12:07:58 -08:00
fec47a09a9
Add test from drone business logic; remove flaky, mis-placed integration test
2019-01-15 12:53:09 -07:00
022a97da99
revert revert of kill window ( #2427 )
...
* remove window code from most places
* window used only for testing
* remove unecessary clippy directives
2019-01-15 10:51:53 -08:00
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
2b549e3af6
Bump hashbrown from 0.1.7 to 0.1.8
...
Bumps [hashbrown](https://github.com/Amanieu/hashbrown ) from 0.1.7 to 0.1.8.
- [Release notes](https://github.com/Amanieu/hashbrown/releases )
- [Changelog](https://github.com/Amanieu/hashbrown/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Amanieu/hashbrown/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-15 08:55:24 -07:00
b2afd1ea0b
Bump rbpf to 0.1.9 ( #2422 )
2019-01-15 00:42:30 -08:00
ef8e5b40b6
Use dep files and restore tests
2019-01-14 23:41:07 -08:00
a6773ad442
Specify entrypoint when building rust programs
2019-01-14 20:13:01 -08:00
c2add08efb
Move parameter to make flags variable
2019-01-14 20:12:06 -08:00
a33c76a456
Remove JsonRpcRequestProcessor dependency
2019-01-14 17:39:31 -08:00
11b1bd278a
Remove unused exit field
2019-01-14 17:39:12 -08:00
e3a96ed3fc
Minor new cleanup
2019-01-14 16:04:29 -08:00
447243f994
Revert "remove window code from most places" ( #2417 )
...
* Revert "Fix link to book in Local Testnet section (#2416 )"
This reverts commit 710c0c9980
.
* Revert "Add current leader information to dashboard (#2413 )"
This reverts commit f0300c1711
.
* Revert "remove window code from most places (#2389 )"
This reverts commit e3c0bd5a3f
.
2019-01-14 15:11:18 -08:00
710c0c9980
Fix link to book in Local Testnet section ( #2416 )
2019-01-14 14:57:12 -08:00
f0300c1711
Add current leader information to dashboard ( #2413 )
2019-01-14 14:20:05 -08:00
e3c0bd5a3f
remove window code from most places ( #2389 )
...
* remove window code from most places
* window used only for testing
* remove unecessary clippy directives
2019-01-14 12:11:55 -08:00
8af61f561b
Improve Wallet coverage ( #2385 )
...
* Add trait for RpcRequestHandler trait for RpcClient and add MockRpcClient for unit tests
* Add request_airdrop integration test
* Add timestamp_tx, witness_tx, and cancel_tx to wallet integration tests; add wallet integration tests to test-stable
* Add test cases
* Ignore plentiful sleeps in unit tests
2019-01-14 00:10:03 -07:00
780360834d
Iteration testing v0.1
2019-01-13 21:49:09 -08:00
74e503da92
Hold an accounts_db read lock as briefly as possible to avoid deadlocking
2019-01-13 21:49:09 -08:00
d28b643c84
localnet-sanity.sh now supports iterations testing
2019-01-13 21:49:09 -08:00
dc1049a6e7
Bump serde_json from 1.0.34 to 1.0.35
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.34 to 1.0.35.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.34...v1.0.35 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-12 21:26:45 -07:00
f965b3de46
Bump reqwest from 0.9.7 to 0.9.8
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.7 to 0.9.8.
- [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[bot] <support@dependabot.com >
2019-01-12 12:44:00 -07:00
eb54a4fe91
Update book URL
2019-01-12 11:08:29 -08:00
5d3847d14d
Publish book from both the edge and beta channels
2019-01-12 11:08:29 -08:00
5b92286568
Remove channel duplication
2019-01-12 11:08:29 -08:00
094bc59553
refactor: reduce node_info scope
2019-01-12 10:28:38 -07:00
e9a0b3a8f3
Add BPF-to-BPF and PC relative call tests ( #2395 )
2019-01-11 19:33:08 -08:00
1724430489
Remove clippy override for cyclomatic complexity ( #2392 )
...
* Remove clippy override for cyclomatic complexity
* reduce cyclomatic complexity of main function
* fix compilation errors
2019-01-11 16:49:18 -08:00
23c43ed21b
Multi-file BPF C builds ( #2393 )
2019-01-11 15:33:21 -08:00
79b334b7f1
Don't use count_valid_ids in bench
2019-01-11 14:54:17 -07:00
9328ee4f63
Revert "Revert "Delete unused code and its tests""
...
This reverts commit d6b3991d49
.
2019-01-11 14:54:17 -07:00
d7594b19fc
Implemented a trait for vote signer service ( #2386 )
...
* Implemented a trait for vote signer service
* removes need for RPC in unit tests for vote signing
* fix build errors
* address some review comments
2019-01-11 12:58:31 -08:00
d6b3991d49
Revert "Delete unused code and its tests"
...
This reverts commit e713ba06f1
.
2019-01-11 07:30:28 -08:00
ec63bacdc1
Bump reqwest from 0.9.6 to 0.9.7
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.6 to 0.9.7.
- [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.9.6...v0.9.7 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-10 23:23:38 -07:00
e713ba06f1
Delete unused code and its tests
2019-01-10 23:19:38 -07:00
37cb218437
Drop the serialization length
2019-01-10 17:05:03 -08:00
4f79a8a204
Use serialized_size - less fragile
2019-01-10 17:05:03 -08:00
7341298a11
Cleanup tpu forwarder ( #2377 )
...
* Use unwrap() on locks
An error there generally indicates a programmer error, not a
runtime error, so a detailed runtime message is not generally useful.
* Only clone Arcs when passing them across thread boundaries
* Cleanup TPU forwarder
By separating the query from the update, all the branches get easier to
test. Also, the update operation gets so simple, that we see it
belongs over in packet.rs.
* Thanks clippy
cute
2019-01-10 13:34:48 -07:00
b9c27e3a9d
Bump rocksdb from 0.10.1 to 0.11.0 ( #2376 )
...
Bumps [rocksdb](https://github.com/spacejam/rust-rocksdb ) from 0.10.1 to 0.11.0.
- [Release notes](https://github.com/spacejam/rust-rocksdb/releases )
- [Changelog](https://github.com/rust-rocksdb/rust-rocksdb/blob/master/CHANGELOG.md )
- [Commits](https://github.com/spacejam/rust-rocksdb/compare/v0.10.1...v0.11.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-10 11:12:06 -08:00
885fe38c01
Move BloomHashIndex into its own module
...
This trait is for bloom, not crds.
Slightly better would be to put it in the SDK so that the trait
implementations could go into hash and pubkey, but if we don't
want compatibility constraints, this is the next best thing.
2019-01-10 10:22:16 -08:00
2dbe8fc1a9
Refactor vote signer code ( #2368 )
...
* Refactor vote signer code
* fixed test compilation errors
* address clippy errors
* fix missing macro_use
* move macro use
* review comments
2019-01-10 09:21:38 -08:00
7122139e12
Rewrite TPU forwarder test ( #2344 )
2019-01-10 13:50:28 +05:30
4e6c03c9da
Avoid holding a read lock during IO
2019-01-10 00:34:50 -07:00
d5f27f9b1e
shellcheck
2019-01-09 22:06:58 -07:00
86f19a3ab3
Propagate PS4 to prevent unintentional buildkite log unfolding
2019-01-09 22:02:31 -07:00
be0eefb0af
Add timeout to prevent stuck bench-tps when a cluster goes bad
2019-01-09 19:21:53 -07:00
c1cd92bbee
Avoid -d arg conflict
...
-D is now "delete"
-d is now "disk type"
2019-01-09 16:39:24 -08:00
44b7684d56
Fix some instances of ledger to db_ledger
2019-01-09 16:33:37 -08:00
0c90e1eff6
Make entry_sender optional on window_service
...
window_service in replicator has no need to consume the the produced entries.
2019-01-09 15:15:47 -08:00
491bca5e4b
Remove ledger.rs
...
Split into entry.rs for entry-constructing functions and EntrySlice
trait and db_ledger.rs for ledger helper test functions.
2019-01-09 15:15:47 -08:00
ebd676faaa
Rename Block to EntrySlice
2019-01-09 15:15:47 -08:00
045c5e8556
Remove most of the old ledger code
...
Removes LedgerWriter, read_ledger, LedgerWindow
2019-01-09 15:15:47 -08:00
45b4cf2887
Remove store_ledger_stage which is no longer needed
2019-01-09 15:15:47 -08:00
4b5acc065a
Give the bootstrap leader one million tokens as a #2355 workaround
2019-01-09 13:30:20 -08:00
73eca72f14
Switch test to send a repair request to try and download from replicator
...
Removes need for read_ledger in the test and also tests replicator
download path.
2019-01-09 13:24:12 -08:00
28431ff22c
Add configurable RUST_LOG for ./net.sh sanity
2019-01-09 12:12:50 -08:00
639bed2f6d
Reorder sanity.
...
1. Check for presence of nodes
2. Check for functioning RPC API
3. Then try the wallet
2019-01-09 12:05:30 -08:00
77794eebdb
Remove |cargo package| sanity step
...
Unfortunately due to our multi-crate repo, as soon as
|./scripts/increment-cargo-version.sh| is run after a release, |cargo
package| will fail for crates that depend on other in-tree crates, as
the new crate version has not yet been published to crates.io.
For now this means that we need to continue flying blind and be prepared
to deal with minor publishing issues on each new release.
2019-01-09 11:59:24 -08:00
eb37aa2bba
Kill monitoring scripts by process group to ensure a full shutdown
2019-01-09 11:59:01 -08:00
048fe371aa
set -x for more detailed logs
2019-01-09 11:59:01 -08:00
0b666ad9fd
De-dup error messages
2019-01-09 11:59:01 -08:00
87c9af142f
Preserve config/ when skipSetup
2019-01-09 11:59:01 -08:00
6b46c22b42
Use restart
2019-01-09 11:59:01 -08:00
94494b64d7
whack commented out, obsolete, superceded test
2019-01-09 11:30:07 -08:00
b648f37b97
encapsulate erasure_cf ( #2349 )
2019-01-09 10:21:55 -08:00
78d3b83900
Remove vestigial vote account configuration from fullnode-config
2019-01-09 09:56:44 -08:00
56b6ed6730
Rerun build if any file in a directory has changed ( #2343 )
2019-01-09 09:56:23 -08:00
e0c68bf9ad
docs: -z is a common option
2019-01-08 21:11:43 -08:00
64ebd9a194
Add update-to-restart operation. Also try to update before restarting on sanity failures
2019-01-08 21:11:43 -08:00
35fe08b3bc
Add update support
2019-01-08 21:11:43 -08:00
aedab3f83f
Run sanity when previous ledger/setup is preserved
2019-01-08 21:11:43 -08:00
5c87ddc80e
nit: hide echo
2019-01-08 21:11:43 -08:00
f53810fcd2
Remove unused exit variable
...
The exit variable was only used by a test.
2019-01-08 20:22:31 -08:00
56fa3a09c8
Surface the spy node's id, useful for log analysis
2019-01-08 17:43:41 -08:00
58bca04a3f
Couple edits
2019-01-08 17:44:09 -07:00
3c6afe7707
Rename get_blob_bytes to read_blobs_bytes
2019-01-08 16:00:39 -08:00
09296e0d71
Fix two storage tests
...
* test_encrypt_files_many_keys_multiple_keys passing
- buffer chunk size unified between single key and multiple key path,
which shouldn't be necessary but can fix later.
* test_encrypt_file_many_keys_bad_key_length passing
2019-01-08 16:00:39 -08:00
4b3d64ec9f
Convert chacha_encrypt_file to work with db_ledger blobs directly
2019-01-08 16:00:39 -08:00
a904e15ecc
enscapsulate data_cf ( #2336 )
...
* enscapsulate data_cf
2019-01-08 15:53:44 -08:00
a82a5ae184
Delete unused code
...
The ignored test is still broken, but at least no longer creates a
window for no reason.
Also removed all remaining references to "ncp".
2019-01-08 14:09:50 -08:00
bafd90807d
encapsulate meta_cf ( #2335 )
2019-01-08 11:41:55 -08:00
08924ea36a
Bump rand from 0.6.3 to 0.6.4
...
Bumps [rand](https://github.com/rust-random/rand ) from 0.6.3 to 0.6.4.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/0.6.3...0.6.4 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-08 11:09:03 -07:00
0f8ea6872e
Add missing error counters and load_account test cases ( #2327 )
2019-01-08 09:20:25 -08:00
1b7598e351
Add retries to RPC API probe
2019-01-08 08:50:51 -08:00
d2431128c7
Remove WriteStage from TPU/TVU diagrams
...
Fixes #2312
2019-01-08 08:42:06 -08:00
8e0e12e5c9
Bump reqwest from 0.9.5 to 0.9.6
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.9.5 to 0.9.6.
- [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.9.5...v0.9.6 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-08 09:11:14 -07:00
e883117a7d
Add missing description field, required for crate publishing
2019-01-07 23:02:32 -08:00
cd0e08cae5
Add fullnode-config crate
2019-01-07 23:02:32 -08:00
1490c42d9f
Use docker rust docker image to avoid rocksdb build errors
2019-01-07 23:02:32 -08:00
789ee9f138
package or publish. Also package on branch builds
2019-01-07 23:02:32 -08:00
2c52e82352
Use retry_make_rpc_request to avoid occasional CI test failures
2019-01-07 21:25:25 -08:00
0a981a6606
Double publish crate timeout
2019-01-07 20:46:21 -08:00
534f8d7a4e
Don't turn the build red if channel cannot be figured (eg, building a tag)
2019-01-07 19:56:07 -08:00
c4ca76e39e
Only check TRIGGERED_BUILDKITE_TAG
2019-01-07 19:56:01 -08:00
a8b9899dee
Add retry, restore ignored tests
2019-01-07 19:30:08 -08:00
d2cb4e003c
Re-enable the --lib tests
2019-01-07 15:28:20 -08:00
0a0c62f384
Fixes to CI bench comparison ( #2319 )
...
* Fixes to CI bench comparison
- The table columns did not match the header
- The last commit was not identified correctly
* review comments
2019-01-07 14:26:21 -08:00
6000df9779
Optimize has_duplicates() for short slices
2019-01-07 13:20:04 -07:00
24963e547c
with_subset() -> get_subset_unchecked_mut()
...
A simpler, safer, and better documented use of unsafe code
2019-01-07 13:20:04 -07:00
3ad3dee4ef
Retry node registration to avoid failing before the local vote signer starts
2019-01-07 11:02:35 -08:00
46d44ca99c
Add make_rpc_request retry mechanism
2019-01-07 11:02:35 -08:00
06d1af8b18
Remove stale comment
2019-01-07 09:35:39 -08:00
d34b2c4ffd
Bump tokio from 0.1.13 to 0.1.14
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 0.1.13 to 0.1.14.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Changelog](https://github.com/tokio-rs/tokio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-0.1.13...tokio-0.1.14 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-07 08:38:15 -07:00
0c52df7569
Consolidate locks and error handling when loading accounts( #2309 )
2019-01-06 22:06:55 -08:00
91bd38504e
Use vote signer service in fullnode ( #2009 )
...
* Use vote signer service in fullnode
* Use native types for signature and pubkey, and address other review comments
* Start local vote signer if a remote service address is not provided
* Rebased to master
* Fixes after rebase
2019-01-05 12:57:52 -08:00
71a2b794b4
Enable info logging on non-perf clusters to aid debug of failures
2019-01-05 08:28:32 -08:00
373714bf0b
Disable publish snap again
2019-01-04 21:20:33 -08:00
ee769171b9
Restore publish snap
2019-01-04 20:46:44 -08:00
6ebadbcca3
Plot testnet-manager events
2019-01-04 20:12:11 -08:00
3f60d98163
Update comments ( #2310 )
2019-01-04 19:19:56 -08:00
ea00c1274e
Add net sanity failure metric
2019-01-04 18:45:55 -08:00
b7dc9dbc76
RPC API now assumes a drone running on the bootstrap leader
2019-01-04 18:45:55 -08:00
8b357dcb32
cargo fmt
2019-01-04 16:39:04 -08:00
1f6346d880
De-dup ledgers - db_ledger is now the only ledger written to disk
2019-01-04 16:37:00 -08:00
b7bd38744c
Spelling and formatting
2019-01-04 16:04:31 -08:00
f8a67e282a
Ignore test_tpu_forwarder ( #2307 )
2019-01-04 16:02:50 -08:00
0a7e199c82
Don't follow the leader: assume drone runs on the network entrypoint
2019-01-04 15:58:42 -08:00
5143f6d6f1
Boot unused crate
2019-01-04 14:34:23 -07:00
30b662df39
Remove clones in native programs
2019-01-04 13:38:03 -07:00
33f2d83506
Add timeout and prints to port search
...
Otherwise nc can hang forever.
2019-01-04 11:07:17 -08:00
4244a14ad3
Bump rand from 0.6.2 to 0.6.3
...
Bumps [rand](https://github.com/rust-random/rand ) from 0.6.2 to 0.6.3.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/0.6.2...0.6.3 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-04 11:09:27 -07:00
f031fe58fa
Bump rand from 0.6.1 to 0.6.2
...
Bumps [rand](https://github.com/rust-random/rand ) from 0.6.1 to 0.6.2.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/0.6.1...0.6.2 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-04 08:43:36 -07:00
84cc240f34
Enhance ledger-tool
...
Add a command-line argument (min-hashes) to restrict the entries
processed by ledger-tool. For example, --min-hashes 1 will strip
"empty" Entries, i.e. those with num_hashes = 0.
Add basic ledger tool test
2019-01-04 08:17:43 -07:00
b26906df1b
Bump rand_chacha from 0.1.0 to 0.1.1
...
Bumps [rand_chacha](https://github.com/rust-random/rand ) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/rand_chacha-0.1.0...rand_isaac-0.1.1 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2019-01-04 08:15:18 -07:00
56a3197f7f
spelling
2019-01-03 18:48:24 -08:00
0505d7bd32
Don't double-clone every account
2019-01-03 17:42:37 -07:00
a448c0b81e
implement per-thread, per-batch sleep in ms (throttling allows easier UI dev) ( #2293 )
...
* implement per-thread, per-batch sleep in ms (throttling allows easier UI development)
* tidy up sleep() call with Duration::from_millis() instead of Duration::new()
* fixup indentation style
* removing multinode-demo/client-throttled.sh (same functionality available via arguments)
2019-01-03 17:16:06 -05:00
8116fe8def
Add proposed design for db_ledger ( #2253 )
...
* Add proposed design for db_ledger
2019-01-03 14:12:55 -08:00
7c6dcc8c73
Ignore wallet/target
2019-01-03 10:28:43 -08:00
1a9401e1f3
Permit build on Cargo.{lock,toml} changes
2019-01-03 09:35:11 -08:00
00d310f86d
Remove some metrics datapoint, as it was causing excessive logging ( #2287 )
...
- 100 nodes test was bringing down the influx DB server
2019-01-03 09:25:11 -08:00
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
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
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
a461c5682d
First stab at Rust BPF ( #2269 )
...
First stab at Rust BPF
2019-01-02 15:12:42 -08:00
e3478ee2ab
svg logo and increased font size for better reading experience
2019-01-02 08:33:57 -07:00
0bea870b22
Dynamic N layer 'avalanche' broadcast and retransmit ( #2058 )
...
* Dynamic N layer avalanche broadcast and retransmit
2019-01-02 14:16:15 +05:30
5fbdc6450d
Bump serde_json from 1.0.33 to 1.0.34
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.33 to 1.0.34.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.33...v1.0.34 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2018-12-30 21:15:59 -08:00
1531a1777a
Add RPC API check
2018-12-24 22:51:36 -08:00
f38345fdad
Cargo.lock
2018-12-24 22:51:36 -08:00
04d46ea33f
Run oom-monitor as root
2018-12-24 22:51:36 -08:00
3a2fa9a650
Enable ledger/validator sanity for non-perf testnets
2018-12-24 22:51:36 -08:00
f5bbc5e961
Fix args
2018-12-23 20:56:13 -08:00
95c9fefbd0
Make sanity failure message more visible
2018-12-23 17:30:59 -08:00
073a48ab85
Restore timeout
2018-12-23 17:30:41 -08:00
753a783ba9
Add solana user to adm group for /var/log/syslog access
2018-12-23 17:28:35 -08:00
58f2598d5d
Revert "Validators make a transaction to advertise their storage last_id"
...
This reverts commit a1759aed19
.
2018-12-23 14:02:09 -08:00
3c835b692b
Use netLogDir
2018-12-23 10:33:43 -08:00
7f2fa8bbcb
Collect and upload network logs
2018-12-23 10:19:10 -08:00
a6fd1ca3db
Add logs subcommand to fetch remote logs from each network node
2018-12-23 10:19:10 -08:00
58a4905916
Make reconstruct_entries_from_blobs() support Blobs and borrowed SharedBlobs, make distinction between to_blobs and to_shared_blobs ( #2270 )
2018-12-22 19:30:30 -08:00
2c9607d5da
Rename getConfirmation -> getConfirmationTime
2018-12-22 12:47:02 -08:00
371cb4f0f3
Document getConfirmationTime
2018-12-22 12:47:02 -08:00
b46c809544
source ci/upload-ci-artifact.sh
2018-12-22 12:34:30 -08:00
eb29a2898c
Uplaod net/log/ files as buildkite artifacts
2018-12-22 12:22:58 -08:00
c3a74e5e63
Avoid unnecessary shellcheck directives
2018-12-22 11:57:47 -08:00
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
1a3387706d
Spawn threads based on cpu count ( #2232 )
2018-12-21 13:55:45 -08:00
41f8764232
Ignore error while enabling nvidia persistence mode ( #2265 )
2018-12-21 12:37:51 -08:00
4bf797c8f1
Load nvidia drivers on node startup ( #2263 )
...
* Load nvidia drivers on node startup
* added new script to enable nvidia driver persistent mode
* remove set -ex
2018-12-21 11:43:52 -08:00
7e3b54f826
Remove llc step when building BPF C programs ( #2254 )
2018-12-21 08:49:29 -08:00
23d3a9ae42
Use CUDA for testnet automation performance calculations ( #2259 )
2018-12-21 04:27:31 -08:00
756156e9db
Use SSD for testnet automation ( #2257 )
2018-12-20 20:13:56 -08:00
4807fb4c5c
Use if to be more explict about error handling (set -e trouble?)
2018-12-20 19:07:17 -08:00
dd25c5b085
Link Cargo.toml features
2018-12-20 19:07:17 -08:00
becfd1e9fa
ci/test-stable-perf.sh now runs on macOS
2018-12-20 17:23:22 -08:00
951d6398a0
Rename finality to confirmation ( #2250 )
...
* Rename finality to confirmation
* fix cargo fmt errors
2018-12-20 15:47:48 -08:00
7c98545b33
Use newer votes to calculate confirmation time ( #2247 )
2018-12-20 15:27:47 -08:00
bb1060bdad
Reduce ticks per block to increase voting frequency ( #2242 )
2018-12-20 14:43:03 -08:00
7ad45a91ec
Fix compile error
2018-12-20 13:47:36 -08:00
51045962d3
Adjust settings
2018-12-20 12:32:25 -08:00
034c5d0422
db_ledger now fully encapsulates rocksdb
2018-12-20 12:32:25 -08:00
7148c14178
Debug broadcast ( #2233 )
...
* Account for duplicate blobs in process_blobs
* Increase max bytes for level base to match write buffer
2018-12-20 12:12:04 -08:00
93fb61dc8f
Re-export rocksdb::DBRawIterator until it can be encapsulated
2018-12-20 10:38:03 -08:00
b36ceb5be4
Remove rocksdb dependency from result.rs
2018-12-20 10:38:03 -08:00
37d7ad819b
Purge DB::destroy() usage
2018-12-20 10:38:03 -08:00
6bb6785936
Document updating Cargo.lock during a version bump
2018-12-20 09:20:00 -08:00
cb70824ed1
Cargo.lock
2018-12-20 09:20:00 -08:00
ddc1082e8c
Stable dashboard can now actually come from the stable channel
2018-12-20 08:04:59 -08:00
f98d72a30b
Fetch latest tag
2018-12-19 20:17:49 -08:00
71df71c601
Revert Clang to C lang change
2018-12-19 20:17:23 -08:00
1d0f7c44e2
Copy editing introduction
...
Not sure how else to comment, but I'd encourage keeping the content timeless rather than an update. So don't talk about recent releases or next we're doing X. (just a suggestion ;)
2018-12-19 20:17:23 -08:00
d78f19f8bb
Select correct branch for {testnet,-perf} when using a stable channel tag
2018-12-19 17:46:18 -08:00
0e567381fb
v0.12.0
2018-12-19 17:03:28 -08:00
e2225d3b71
Add more Azure details
2018-12-19 16:31:28 -08:00
666af1e62d
Debug broadcast ( #2208 )
...
* Add per cf rocksdb options, increase compaction and flush threads
* Change broadcast stage to bulk write blobs
* add db_ledger function specifically for broadcast
* fix broken tests
* fix benches
2018-12-19 16:11:47 -08:00
2fe3402362
Use SSD for perf testnet ( #2227 )
2018-12-19 16:11:26 -08:00
14a236198f
nit: rename publish-solana-tar.sh to publish-tarball.sh
2018-12-19 14:26:25 -08:00
cc1b43b90a
Retire GCP setup
2018-12-19 14:26:25 -08:00
9448f0ce52
Add more Azure CI documentation
2018-12-19 14:26:25 -08:00
59fdd8f6be
Move wallet airdrop retries into fullnode start script
2018-12-19 13:49:04 -08:00
7b20318ee4
Run s3cmd in a container to avoid additional CI system dependencies
2018-12-19 13:09:24 -08:00
c3c955b02e
Build/install native programs within cargo-install-all.sh
2018-12-19 11:53:08 -08:00
6e56e41461
Document how to create a new Azure CI machine
2018-12-18 23:35:09 -08:00
d74d5e0e44
nit: prevent shellcheck command from getting expanded by default
2018-12-18 18:44:20 -08:00
cac08171de
nit: prevent book build from getting expanded by default
2018-12-18 18:44:20 -08:00
6f6c350781
Skip stable-perf of no .rs files are modified in a PR
2018-12-18 18:44:20 -08:00
506724fc93
Remove non-standard : anchors
2018-12-18 18:44:20 -08:00
b4fe70d3d8
Skip bench of no .rs files are modified in a PR
2018-12-18 18:09:59 -08:00
3efbffe4e3
Run coverage when test-coverage.sh is modified
2018-12-18 18:09:59 -08:00
cafa873f06
run tests in single thread so local runs succeed
2018-12-18 17:38:44 -08:00
b4f4347d6e
add some more tests ( #2217 )
2018-12-18 17:27:03 -08:00
5c866dd000
test drive new coverage stuff ( #2216 )
2018-12-18 16:44:27 -08:00
974249f2a5
Parallelize entry processing in replay stage in validators ( #2212 )
...
* Parallelize entry processing in replay stage in validators
- single threaded entry processing is not utlizing CPU cores to the fullest
* fix tests and address review comments
2018-12-18 16:06:05 -08:00
a65022aed7
DbLedger doesn't need to be mut, doesn't need an RwLock ( #2215 )
...
* DbLedger doesn't need to be mut, doesn't need an RwLock
* fix erasure cases
2018-12-18 15:18:57 -08:00
b101f40c32
Initial revision
2018-12-18 14:27:37 -08:00
e8e6c70e19
Remove duplicate _ definitions
2018-12-18 14:25:10 -08:00
c8d27f6424
Drop _ to clean up CI logs, apply more -j
2018-12-18 14:11:15 -08:00
287e8cefda
Keep gcno files around to prevent breaking CI builds with a warm target/ cache
2018-12-18 14:07:42 -08:00
db8f2d9f07
Make ulimit non-fatal to keep the ci-cuda machine happy
2018-12-18 14:02:43 -08:00
cd6736d70b
Remove duplication between test-stable{,-perf}.sh
2018-12-18 14:02:43 -08:00
0d2e3788ba
Justify each coverage flag, and other cleanup
2018-12-18 13:03:38 -08:00
c0dcf67ec8
Move book build into test-checks
2018-12-18 13:03:38 -08:00
bc52336a1b
affected_files metadata is only available for PR builds
2018-12-18 13:03:38 -08:00
3bfb052b0a
Overhaul coverage setup
2018-12-18 10:48:06 -08:00
c71d5a111e
Extract grcov download script
2018-12-18 10:48:06 -08:00
437b62c4d9
Upgrade grcov
2018-12-18 10:48:06 -08:00
cbca0ae264
Remove dead code
2018-12-18 10:48:06 -08:00
e0cde7dfc5
Remove stale log section
2018-12-18 10:32:40 -08:00
e720070945
Flip && style
2018-12-18 09:56:43 -08:00
a8ab6f4caf
Preserve stable as default, use +nightly to get nightly
2018-12-18 09:54:47 -08:00
b7b1884950
Pass BUILDKITE_COMMIT env var into containers
2018-12-18 08:53:39 -08:00
755064d3e2
Use |cargo +nightly| to avoid assuming nightly is default
2018-12-18 08:44:33 -08:00
24a984086e
nightly is now 1.33
2018-12-18 08:44:33 -08:00
4b831d58b7
Don't fiddle with default rust, humans don't like that
2018-12-18 08:44:33 -08:00
62f36037ea
Pass CI env var into containers
2018-12-18 00:47:41 -08:00
ffdc1814c6
Add counters for gossip verification failures ( #2094 )
2018-12-17 20:12:50 -08:00
29776c0283
Publish book only on content changes instead of on every commit
2018-12-17 16:42:22 -08:00
69d7384cc0
Enable leader rotation on edge testnet ( #2204 )
2018-12-17 16:04:25 -08:00
9720ac0019
Fix try_erasure() ( #2185 )
...
* Fix try_erasure bug
* Re-enable asserts in test_replicator_startup
* Add test for out of order process_blobs
2018-12-17 15:34:19 -08:00
fc56e1e517
Correct crate-type to match other native programs
2018-12-17 15:17:13 -08:00
0f4837980f
Switch noop from println to solana_logger
2018-12-17 14:56:12 -08:00
9a6e27ac36
Accounts is to big, should be its own module ( #2198 )
...
Account module is to big, should be in its own module.
2018-12-17 12:41:23 -08:00
07202205c4
Revert "ignore unstable tests"
...
This reverts commit bd7ef5d445071329a3b49b1f8be71b602226bbec.
2018-12-17 10:47:32 -08:00
dc56bbeec8
Ensure the full workspace is built for coverage
2018-12-17 10:47:32 -08:00
4be537c51a
Temporarily disable nightly build until it can be fixed
2018-12-17 10:15:38 -08:00
66c568ba67
Add wallet sanity timeout
2018-12-17 09:58:34 -08:00
9ff8abaf29
Ensure port is not inuse before selecting it
2018-12-17 09:31:31 -08:00
b7144560c9
Include port number when gossip bind_to fails
2018-12-17 09:31:31 -08:00
4be6d01dfb
Move last ids ( #2187 )
...
* Break out last_ids into its own module
* Boot SignatureNotFound from BankError
* No longer return BankError from LastIds methods
* No longer piggypack on BankError for a LastIds signature status
* Drop all dependencies on the bank
* SignatureStatus -> Status and LastIds -> StatusDeque
* Unstable tests, issue 2193
2018-12-17 07:55:56 -08:00
aef84320e0
Double cache size for stable-perf
2018-12-16 23:05:44 -08:00
9a5195e79e
Remove CARGO_TARGET_CACHE_NAME, use BUILDKITE_LABEL
2018-12-16 23:05:44 -08:00
cc111941bb
Cargo.lock
2018-12-16 23:05:44 -08:00
74ee1e5087
Increase the number of files a node may have open at a time
2018-12-15 17:15:22 -08:00
e5d1bd6589
Drop public suffix on build names
2018-12-15 16:54:23 -08:00
6a0f7a5ceb
Update command path
2018-12-15 16:54:23 -08:00
554cd03269
Update buildkite badge URL
2018-12-15 16:54:23 -08:00
9995194cf1
Regenerate secrets
2018-12-15 15:27:58 -08:00
1298ab1647
Use ejson to manage build secrets
2018-12-15 15:10:04 -08:00
b8ab3078fb
Add pipeline upload script
2018-12-15 15:10:04 -08:00
50e8666a14
Add format-url.sh
2018-12-15 15:10:04 -08:00
0659971ecf
Remove unused cargo dependencies
2018-12-14 23:55:56 -08:00
fd562cb9e2
Rust 2018 cleanup
2018-12-14 21:57:15 -08:00
aaa5cd4615
Remove stray keygen
2018-12-14 21:57:15 -08:00
3f835f8ee3
Use proper match condition for duration ( #2182 )
2018-12-14 21:18:41 -08:00
5bf9a20d42
fullnode-config no longer depends on src/
2018-12-14 20:13:34 -08:00
eedc8c7812
Move src/netutil.rs into its own crate
2018-12-14 20:13:34 -08:00
f0d1ed0cc4
|cargo test --all|
2018-12-14 19:32:04 -08:00
8ba1aed5a3
Fix up tests
2018-12-14 19:32:04 -08:00
9ef5e51c0f
Cleanup slot remnants in db_ledger ( #2153 )
...
* Cleanup slot remnants in db_ledger
2018-12-14 17:05:41 -08:00
fe5566d642
Local testnet info ( #2174 )
2018-12-14 15:55:58 -08:00
4a2933b0b6
Update README.md
2018-12-14 15:55:16 -08:00
8ee0e9632c
Switch to using hashbrown version of HashMap and ( #2158 )
...
HashSet for improved performance and memory usage
2018-12-14 15:10:10 -08:00
8fcb7112ec
Fetch a new last_id to prevent DuplicateSignature errors during AccountInUse retries
2018-12-14 13:33:31 -08:00
6ac466c0a4
Move src/logger.rs into logger/ crate to unify logging across the workspace
2018-12-14 13:10:43 -08:00
d45fcc4381
Move src/wallet.rs into wallet/ crate
2018-12-14 12:15:18 -08:00
a22e1199cf
Add fork selection RFC ( #2061 )
...
RFC and simulation for fork generation.
2018-12-14 11:15:23 -08:00
79f12d6b55
Move EntryTree back to proposals
2018-12-14 12:12:34 -07:00
483f6702a6
Rewrite synchronization chapter ( #2156 )
...
* Rewrite synchronization chapter
* Add synchronization terminology
2018-12-14 11:06:53 -07:00
f6e3464ab9
bench-tps rebase
2018-12-14 09:38:46 -08:00
708876e9a7
Fix CI and related issues in bench-tps
...
Rename crate to `solana-bench-tps` in its Cargo.toml
Move crate
Add to ci/publish-crate.sh
2018-12-14 09:38:46 -08:00
29d04aa533
Move bench_tps to new crate in workspace
...
Separate CLI/clap related code, create a new `Config` struct to hold all
configuration/CLI args
Remove most code from `main.rs`
Add a little documentation
2018-12-14 09:38:46 -08:00
6fcccedb70
align tick entries' tick_height with actual number of ticks in bank ( #2147 )
2018-12-14 02:25:50 -08:00
60f3aeb4ef
clippy fix
2018-12-13 23:40:26 -08:00
c1ad987b04
Run checks over all crates in the workspace
2018-12-13 23:40:26 -08:00
9d0b7c6b31
Remove bench_streamer feature
2018-12-13 22:25:27 -08:00
d489cb1a8b
Desnake upload_ci_artifact for consistency
2018-12-13 22:25:27 -08:00
0fe6d61036
Move binaries from src/bin into their own crate
2018-12-13 22:25:27 -08:00
092edabd2d
Add homepage field to all crates
2018-12-13 22:25:27 -08:00
1a68bce94c
Rename fullnode.rs to main.rs
2018-12-13 22:25:27 -08:00
87fe3ade81
Add noop cuda feature entry
2018-12-13 20:08:24 -08:00
accabca618
Find solana-fullnode-cuda
2018-12-13 20:08:24 -08:00
091b21fae7
Vote every number of ticks ( #2141 )
...
* Vote every number of ticks
* address review comments
* fix for failing leader rotation tests
* remove check for vote failure from replay tests
(as votes will be cached and transmitted when leader is available)
2018-12-13 18:43:10 -08:00
85398c728a
Disable assert in replicator startup test
2018-12-13 16:50:30 -08:00
7325b19aef
Do not allocate for each metrics submission ( #2146 )
2018-12-13 16:40:00 -08:00
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
3ce3f1adc1
Move book dev instructions out of top-level readme
2018-12-13 11:17:11 -07:00
9880a86f80
remove prev_id, unused ( #2150 )
2018-12-13 09:24:38 -08:00
647e5d76b0
Move solana-fullnode into fullnode/
2018-12-13 01:45:29 -08:00
7e4af9382e
Move solana-upload-perf into upload-perf/
2018-12-13 01:06:40 -08:00
282d4a3563
Move solana-keygen into keygen/
2018-12-13 01:06:40 -08:00
cafeef33c3
Relocate all keypair generation into one location: sdk/src/signature.rs
2018-12-13 01:06:40 -08:00
4f48f1a850
add db_ledger genesis, rework to_blob(), to_blobs() ( #2135 )
2018-12-12 20:42:12 -08:00
a05a378db4
cleanup
2018-12-12 19:12:51 -08:00
245362db96
Make a dummy version of serving repairs from db_ledger
2018-12-12 19:12:51 -08:00
b1b190b80d
Fix too many args in Tvu::new ( #2114 )
...
* Reduce args in Tvu::new under to 8
Now pass in sockets through a the crate::tvu::Sockets struct
Move ClusterInfo.keypair to pub(crate) in order to remove redundant
signing keypair parameter
* remove commented code
2018-12-12 18:57:48 -08:00
3408ce89a7
add check_tick_height ( #2144 )
2018-12-12 18:52:11 -08:00
59a094cb77
Ensure bpf_c files exist to avoid accidental rebuilds as the tree changes
2018-12-12 17:30:41 -08:00
8782b14842
Cargo.lock
2018-12-12 17:14:50 -08:00
0f38b4b856
Remove unused dependencies
2018-12-12 17:14:50 -08:00
75f407e191
Provide entire elf to bpf_loader
2018-12-12 17:14:50 -08:00
4b07778609
Add bench_streamer feature to inhibit building solana-bench-streamer by default
...
This program is not currently used in any automation and is fairly slow
to build. Disabling it by default will speed incremental builds.
2018-12-12 16:31:13 -08:00
9b81696a09
remove obsoleted TODO
2018-12-12 16:26:59 -08:00
80e19e0ad7
Encapsulate accounts of solana: 🏦 :Accounts
...
Make the field private and expose an account_values() method that
returns the values iterator from the internal hashmap
2018-12-12 16:26:59 -08:00
962e8dca1d
Fix markdown
2018-12-12 17:19:46 -07:00
8da4be1b34
Prefer the term 'cluster' over 'network'
...
Use 'network' for the networking stack. Examples:
* The network drops packets.
* The cluster rejects bad transactions.
* The Solana cluster runs on a gigabit network.
2018-12-12 17:19:46 -07:00
f2ef74d1a1
Consistent naming between ToC and chapters
2018-12-12 17:19:46 -07:00
546c92751b
80-char lines
2018-12-12 17:19:46 -07:00
ae903f190e
Broadcast for slots ( #2081 )
...
* Insert blobs into db_ledger in broadcast stage to support leader to validator transitions
* Add transmitting real slots to broadcast stage
* Handle real slots instead of default slots in window
* Switch to dummy repair on slots and modify erasure to support leader rotation
* Shorten length of holding locks
* Remove logger from replicator test
2018-12-12 15:58:29 -08:00
bf33d9d703
Disable snap build until #2127 is resolved
2018-12-12 15:13:11 -08:00
3a89d80a61
Update name in TPU
2018-12-12 14:55:27 -07:00
fd45e83651
Add web wallet example
2018-12-12 14:55:27 -07:00
27e2fd9b06
Update README.md
2018-12-12 14:35:22 -07:00
9a49ace606
No longer reserve terms from the terminology chapter
...
We followed the precedent set by the Rust book here, but now that
proposals are integrated, each proposal can simply include its own
terminology section.
2018-12-12 14:12:07 -07:00
3413ecc2bd
Change query used to find list of nodes in the network ( #2124 )
...
* Change query used to find list of nodes in the network
* include "All" option for host selection
2018-12-12 12:38:00 -08:00
ad8b095677
Capitalize acronyms in book
2018-12-12 12:15:20 -07:00
38c72070fb
Update links
2018-12-12 12:11:12 -07:00
93fe1af1a8
Integrate EntryTree description into the TVU doc
2018-12-12 12:11:12 -07:00
504bf4ba84
Bring drone description into the present
2018-12-12 12:11:12 -07:00
9f9c5fcf10
Migrate all RFC content into the book
2018-12-12 12:11:12 -07:00
90a0237457
Cherrypick recent changes to gossip RFC
...
Delete the RFC since this is all implemented.
See: 02bfcd23a9
2018-12-12 11:55:07 -07:00
c83538a60c
Add new proposal process
...
And move replication and enclave proposals there to get a feel
for how it'd look.
2018-12-12 11:04:57 -07:00
13d4e3f29f
Replace the leader rotation chapter with the latest RFC
...
The content that was originally copied was split into multiple
RFCs, leaving the book copy to bitrot.
2018-12-12 10:48:58 -07:00
cefbb7c27d
Fix shared object relcations with multiple static arrays ( #2121 )
2018-12-12 08:41:45 -08:00
fa98434096
Update variables in dashboard ( #2117 )
...
* Update variables in dashboard
* fix escaped strings for query
2018-12-12 06:06:33 -08:00
af3ca02e35
Switch testnet-edge from snap to tarball
...
Snap publishing has been failing all day, unclear why. Potentially
revert this commit if/when resolved.
2018-12-11 23:34:41 -08:00
5c396c222a
Clean up install-native-programs.sh usage
2018-12-11 23:29:05 -08:00
088bab61a4
Remove |cargo install| duplication
2018-12-11 23:29:05 -08:00
080d18b06e
Only run publish-crate on release branches, clarify crate ordering
2018-12-11 23:29:05 -08:00
54fb4e370c
Abort make if scripts/install.sh fails
2018-12-11 21:57:53 -08:00
17f1f40140
branch -> fork
2018-12-11 17:37:54 -07:00
b011ed6358
branch -> fork
...
Save your branches for git
2018-12-11 17:36:16 -07:00
acbc6335af
Minor fixes
2018-12-11 17:33:43 -07:00
511c84760e
Fix typos, rendering and old terms
2018-12-11 17:27:54 -07:00
6cbf82dbe0
Delete storage.md
2018-12-11 17:10:01 -07:00
896622de64
Delete empty page
...
Bring this back in after replication is fully integrated.
2018-12-11 17:09:44 -07:00
1a160a86fa
Fix typo and curve corners
2018-12-11 17:07:43 -07:00
11abd3cf6e
Update tictactoe.md
2018-12-11 17:03:49 -07:00
9552badb16
Reference tic-tac-toe README instead of copying it
...
Also expand a bit on how it works.
2018-12-11 16:01:35 -08:00
6fd41beccd
Reference the JavaScript API docs more directly
2018-12-11 16:01:35 -08:00
c679dea1b7
Add instructions to build and run tic-tac-toe
2018-12-11 16:01:35 -08:00
4788a4f775
Correctly describe repair and retransmit peers ( #2110 )
2018-12-11 15:51:47 -08:00
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
2238725d1c
empty entries -> ticks
2018-12-11 15:26:39 -07:00
bffa9f914c
Next leader needs to publish empties
2018-12-11 15:26:39 -07:00
eeb31074de
Take 2
2018-12-11 15:26:39 -07:00
af22de2cfa
Cleanup leader rotation RFC
2018-12-11 15:26:39 -07:00
1d3f05a9d4
Update validator vote count
2018-12-11 13:32:39 -08:00
935524f20c
Fix eh frame relocation ( #2109 )
...
* Exclude .eh_frame
2018-12-11 12:14:41 -08:00
5847961fec
Fix BPF loader messages ( #2098 )
2018-12-11 11:20:26 -08:00
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
c57dedb034
Add missing ld.lld wrapper needed for shared objects linking
2018-12-11 09:56:20 -08:00
b2d7b34082
Add |./net.sh update| command to live update all network nodes
2018-12-11 09:40:22 -08:00
4d67aca919
add genesis and read_ledger to db_ledger ( #2097 )
2018-12-11 09:14:23 -08:00
e3dfd7b1ab
Allow BPF structure passing and returning ( #2100 )
...
* Add BPF struct passing and returning tests
2018-12-11 09:03:37 -08:00
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
46866be21d
Bump serde_derive from 1.0.81 to 1.0.82
...
Bumps [serde_derive](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 09:21:11 -07:00
154e20484d
Use hostname in database if env is set ( #2101 )
2018-12-10 22:59:38 -08:00
aeee25e703
add tick_height to Entry to be able to repair by period, chain forks of Entries, etc. ( #2096 )
2018-12-10 20:03:04 -08:00
b51bcb55db
Fix broken dashboard counters ( #2093 )
2018-12-10 16:10:44 -08:00
b5784de33f
Disable leader rotation for testnet-automation until it's ready
2018-12-10 15:23:11 -08:00
9556a9be17
Update the artwork
2018-12-10 15:26:43 -07:00
01c524ddd2
Revert changes to counter names
2018-12-10 15:26:43 -07:00
5e703dc70a
Free up the term 'replicate' for exclusive use in replicator
...
Also, align Sockets field names with ContactInfo.
2018-12-10 15:26:43 -07:00
bc96bd3410
Fix peer count in edge dashboard ( #2090 )
...
Fixes #2075
2018-12-10 14:24:32 -08:00
094f0a8be3
Leader rotation flag plumbing
2018-12-10 14:07:59 -08:00
3d996bf080
Disable leader rotation on CI testnets until it's ready
2018-12-10 14:07:59 -08:00
4b05ee6811
Add hacky sleep
2018-12-10 14:05:00 -08:00
d7032aeb43
Add vote instruction debug log
2018-12-10 13:24:14 -08:00
4ea1c030bc
Give bootstrap leader one more token
2018-12-10 13:24:14 -08:00
172e511e56
Use retry_transfer to test multiple times for replicator tokens
...
May fix failures in CI where replicator is trying to do an airdrop.
2018-12-10 12:19:00 -08:00
4481efd51e
Merge pull request #2084 from CriesofCarrots/fix-wallet-accountinuse
...
Fix wallet accountinuse
2018-12-10 12:20:55 -07:00
337c2bfd29
Fix spelling
2018-12-10 09:31:17 -08:00
ffc82c027e
Fix markdown rendering
2018-12-10 09:53:56 -07:00
e8fd5b4600
Correct keypair argument
2018-12-10 08:41:22 -08:00
67f8916aa8
Bump serde from 1.0.80 to 1.0.81
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.80 to 1.0.81.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.80...v1.0.81 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2018-12-10 08:38:52 -08:00
96e01f3a79
Bump itertools from 0.7.11 to 0.8.0
...
Bumps [itertools](https://github.com/bluss/rust-itertools ) from 0.7.11 to 0.8.0.
- [Release notes](https://github.com/bluss/rust-itertools/releases )
- [Commits](https://github.com/bluss/rust-itertools/compare/0.7.11...0.8.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2018-12-10 08:58:26 -07:00
1e755f261f
Bump serde_derive from 1.0.80 to 1.0.81
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.80 to 1.0.81.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.80...v1.0.81 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2018-12-10 08:56:45 -07:00
b2ddac610c
Add option to skip setup during cluster start
2018-12-10 07:47:15 -08:00
ad05f64b13
crdt-vote-count metric is now named cluster_info-vote-count
2018-12-09 19:23:11 -08:00
9b472d36fc
Add --path .
to keep new cargo
content
2018-12-09 18:09:03 -08:00
b54b0a1d25
Document that -P is now available for |config|
2018-12-09 15:25:27 -08:00
f5794de636
Clean up bootstrap leader terminology in comments and variable names
2018-12-09 15:25:27 -08:00
7ae9d9690b
mkdir-p for the caller
2018-12-09 09:41:14 -08:00
db3cca7fbe
Display wallet address before airdrop to help with debug on airdrop failures
2018-12-09 09:41:14 -08:00
b9743957fa
Make directory to hold programs
2018-12-09 08:38:41 -08:00
0ef099421c
cargo fmt
2018-12-08 23:19:55 -07:00
f1ae5b1795
Fix warnings
2018-12-08 23:19:55 -07:00
a8d6c75a24
cargo +nightly fix --features=bpf_c,cuda,erasure,chacha --edition-idioms
2018-12-08 23:19:55 -07:00
1c2394227e
Enable Rust 2018
2018-12-08 23:19:55 -07:00
c49e2f8bbd
cargo +nightly fix --features=bpf_c,cuda,erasure,chacha --edition
2018-12-08 23:19:55 -07:00
af403ba6fa
Ignore broken chacha bench
2018-12-08 23:19:55 -07:00
ec5a8141eb
cargo fix --edition
2018-12-08 23:19:55 -07:00
92584bd323
Only run the audit
2018-12-08 23:19:55 -07:00
586d9ee850
fix some nits ( #2034 )
...
rework maybe_cargo_install(), renamed to cargo_install_unless, updated to take a command to attempt
2018-12-08 19:14:19 -08:00
2de45a4da5
Update airdrop tokens to 3 for fullnode ( #2051 )
...
Filter out leader while computing the super majority stake
2018-12-08 16:54:42 -08:00
f5569e76db
Relocate native programs to deps/ subdirectory of the current executable
...
This layout is `cargo build` compatible, no post-build file moves
required.
2018-12-08 16:31:01 -08:00
3a13ecba1f
Upgrade to Rust 1.31.0
2018-12-08 11:45:59 -08:00
73b9ee9e84
Add solana_ prefix to native_loader program
...
This allows its logging to show up in the default RUST_LOG=solana=info
log setting
2018-12-08 11:04:45 -08:00
b1682558a6
Remove optional --identity argument to simplify command
2018-12-08 10:22:51 -08:00
0a7c07977d
Follow-up to 872a3317b
2018-12-08 09:23:08 -08:00
0a83b17cdd
Upgrade to Rust 1.31.0 ( #2052 )
...
* Upgrade to Rust 1.31.0
* Upgrade nightly
* Fix all clippy warnings
* Revert relaxed version check and update
2018-12-07 20:01:28 -07:00
2bad6584f6
Update solana-genesis arguments
2018-12-07 16:57:02 -08:00
872a3317b5
Fully switch to bootstrap-leader for command-line args
2018-12-07 16:57:02 -08:00
38901002b0
Accept an ip address in addition to domain name
2018-12-07 16:57:02 -08:00
1db6a882bb
rsync of genesis ledger now works for non-snap deployments
2018-12-07 16:57:02 -08:00
571522e738
Update jsonrpc version
2018-12-07 17:47:54 -07:00
b5a80d3d49
Update ledger replication chapter ( #2029 )
...
* ledger block -> ledger segment
The book already defines a *block* to be a slight variation of
how block-based changes define it. It's the thing the cluster
confirms should be the next set of transactions on the ledger.
* Boot storage description from the book
2018-12-07 16:52:36 -07:00
3441d3399b
Replicator rework
...
* Move more of the replicator logic into the replicator class
* Add support for the RPC interface to query the storage last_id value
that the replicator would sign and use to pick a block.
* Fix replicator connecting to gossip and change test to exercise that
scenario.
2018-12-07 15:20:36 -08:00
fa288ab197
Remove note about replicators mining on same identity
...
Replicators pick their own identity, validators sample from
those.
2018-12-07 14:41:53 -08:00
af11562627
Correct ledger path
2018-12-07 11:32:08 -08:00
286f08f095
Drop old validator name, use fullnode instead
2018-12-07 11:32:08 -08:00
92c3e26c7a
Flip symlinks
2018-12-07 11:32:08 -08:00
6516c2532d
Ensure native programs for the correct platform are installed
2018-12-07 11:32:08 -08:00
82a0cc9d27
Ensure destination is not present
2018-12-07 11:32:08 -08:00
fa58da2401
Explicitly specific build variant when installing native programs
2018-12-07 11:32:08 -08:00
1ddf93fd86
Strip cp -r arg
2018-12-07 10:43:36 -08:00
cba9c5619e
Relax stable version check during the transation period between 1.30 and 1.31
2018-12-06 19:44:47 -08:00
70c149c7da
Rename leader/validator to bootstrap-leader/fullnode
...
Only rsyncing the genesis ledger snuck in here as well
2018-12-06 19:44:47 -08:00
b34e197424
Add newline at end of file
2018-12-06 17:46:46 -08:00
f4b26247c0
Genesis only needs a keypair, not the entire fullnode::Config
2018-12-06 16:31:24 -08:00
8f0a1e32d5
Use consistent naming for the mint id file
2018-12-06 16:31:24 -08:00
c4b8f0cd2f
bench-tps will now generate an ephemeral identity if not provided with one
...
Also simplify scripts as a result
2018-12-06 16:30:48 -08:00
aecb06cd2a
Update versions in install-libssl-compatibility.sh ( #2044 )
2018-12-06 15:57:30 -08:00
e3c4f1f586
Move client keygen into client.sh
2018-12-06 14:49:26 -08:00
97b1156a7a
Rename Ncp to GossipService
...
And BroadcastStage to BroadcastService since it's not included in the
TPU pipeline.
2018-12-06 15:48:19 -07:00
02bfcd23a9
review comments ( #2033 )
2018-12-06 12:53:57 -08:00
cc2f448d92
Add fullnode --no-leader-rotation flag
2018-12-06 11:30:19 -08:00
b45d07c8cb
Remove non-common functions from common.sh
2018-12-06 10:15:14 -08:00
f0fe089013
Adapt testnet-deploy metric datapoint names to {,bootnode-}fullnode
2018-12-06 08:04:33 -08:00
a20c1b4547
Apply review feedback
...
And take a stab at clarifying some other sections too.
2018-12-06 08:44:01 -07:00
56ffb4385d
Use gossip RFC to seed the NCP description
...
And format the gossip RFC for easy diffing.
2018-12-06 08:44:01 -07:00
db3c5f91b6
Update configure
2018-12-05 22:51:44 -08:00
17204b4696
Use 80-character lines for easy diffing
2018-12-05 22:10:55 -07:00
8a83c45bc6
Use the book conventions for easy migration
2018-12-05 22:10:55 -07:00
a6312ba98f
Switch snap to bootstrap-fullnode/fullnode naming
2018-12-05 18:59:43 -08:00
4170f11958
More detail for the storage RFC protocol
...
And section numbers which can be referenced from github issues.
2018-12-05 17:40:46 -08:00
04a0652614
Generalize net/ from leader/validator to bootstrap-fullnode/fullnode
2018-12-05 17:11:16 -08:00
b880dafe28
Cleanup intro
2018-12-05 15:25:11 -08:00
36530fc7c6
Fix link
2018-12-05 15:41:32 -07:00
4fd4218178
update terminology before tearing into RFCs ( #1995 )
...
update terminology before tearing into RFCs
2018-12-05 14:35:41 -08:00
632425c7d7
Move native_loader under programs/native/
2018-12-05 14:32:42 -08:00
ad3e36a7ab
Bump rand from 0.5.5 to 0.6.1 ( #1891 )
...
* Bump rand from 0.5.5 to 0.6.1
Bumps [rand](https://github.com/rust-random/rand ) from 0.5.5 to 0.6.1.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com >
* Fix conflicts and deprecated usages
* Fix benches
2018-12-05 14:12:10 -08:00
a29b307554
Reorg programming model to be more top-down
...
First explain how a client interacts with existing programs and why
you'd do that. Next, mention that users can contribute their own programs.
Then explain how those programs can be written in any language.
Finally, mention persistent storage, which is only needed by
stateful programs.
2018-12-05 13:36:43 -08:00
1bcafca690
Find test_tx again
2018-12-05 13:29:29 -08:00
5d80edd969
Properly check for failure (can't rely on set -e
here)
2018-12-05 13:26:06 -08:00
e21b6d9db3
ensure we'd actually have N hashes per tick ( #2011 )
2018-12-05 12:49:41 -08:00
9c30bddb88
Rocks db erasure decoding ( #1900 )
...
* Change erasure to consume new RocksDb window
* Change tests for erasure
* Remove erasure from window
* Integrate erasure decoding back into window
* Remove corrupted blobs from ledger
* Replace Erasure result with result module's Result
2018-12-05 12:47:19 -08:00
7336645501
Move programs into the executable location so native_loader can find them
2018-12-05 10:49:06 -08:00
59e6bd115e
system_program must be a static lib as it allocates Account memory
2018-12-05 10:49:06 -08:00
8597701b0f
Expand matching to include optional _program suffix
2018-12-05 10:49:06 -08:00
15aef079e3
Include builtin programs for ledger verification
2018-12-05 10:49:06 -08:00
42689d4842
cargo fmt
2018-12-05 10:49:06 -08:00
6e9b8e21ae
Drop new-style Result return to avoid error-type wrangling
...
Plus a backtrace at the point of failure is always nice
2018-12-05 10:49:06 -08:00
424612ea9d
Reduce |ulimit -n| on macOS to max supported amount
2018-12-05 10:49:06 -08:00
5afafd9146
Update list of crates to publish
2018-12-05 10:49:06 -08:00
affa76f81d
Initialize logger
2018-12-05 10:49:06 -08:00
340d5d557a
Add vote program to workspace
2018-12-05 10:49:06 -08:00
214ed3667c
Move system_transaction out of src/
2018-12-05 10:49:06 -08:00
122627dda2
Move loader_transaction out of src/
2018-12-05 10:49:06 -08:00
7af95eadcc
Move vote_transaction out of src/
2018-12-05 10:49:06 -08:00
9ee858a00c
Move budget_program out of src/
2018-12-05 10:49:06 -08:00
27d456bf93
Move storage_program out of src/
2018-12-05 10:49:06 -08:00
ea6e042a6f
Move vote_program out of src/
2018-12-05 10:49:06 -08:00
a594f56c02
Add token_program.rs to sdk/
2018-12-05 10:49:06 -08:00
e6fa74fe69
Remove custom Error enum, just use ProgramError
2018-12-05 10:49:06 -08:00
f184d69c7a
Add account userdata errors
2018-12-05 10:49:06 -08:00
228a5aa75d
Remove stray comment
2018-12-05 10:49:06 -08:00
9a4f8199d6
Move system_program out of src/
2018-12-05 10:49:06 -08:00
ae0be1e857
Remove bpf_loader.rs
2018-12-05 10:49:06 -08:00
d010cac8a5
Remove token_program.rs
2018-12-05 10:49:06 -08:00
63a758508a
Add sdk native_loader.rs
2018-12-05 10:49:06 -08:00
bf2658cee0
Apply review feedback
2018-12-05 10:30:16 -08:00
6ecb00a1d8
Add account access rules
2018-12-05 10:30:16 -08:00
1990501786
Describe executable and owner account metadata
2018-12-05 10:30:16 -08:00
963de90b7f
Apply review feedback
2018-12-05 10:30:16 -08:00
13c7c3b3a6
Rewrite programming model with developer focus
...
Previous version talked about concurrency, which is described
in detail in the Anatomy of a Fullnode chapter. App developers
probably don't care that their programs run in parallel with
other programs. From their perspective, there's no difference
between 10x parallelism and a 10x faster CPU.
2018-12-05 10:30:16 -08:00
e4049f3733
Ensure subshell failures are reported
2018-12-05 10:28:03 -08:00
3cefa59a14
Remove stray tabs
2018-12-05 08:11:55 -08:00
0cb5ae41c6
Enable BPF shared objects ( #2012 )
...
* Switch to BPF ELF shared objects (.so)
2018-12-04 22:03:32 -08:00
209040e80e
Free up term "finality" to imply "economic finality" ( #2002 )
...
* leader finality -> confirmation
Free up term "finality" to imply "economic finality."
* Reorder chapters
2018-12-04 20:52:38 -07:00
2112c87e13
Initial vote signing service implementation ( #1996 )
...
* Initial vote signing service implementation
- Does not use enclave for secure signing
* fix clippy errors
* added some tests
* more tests
* Address review comments + more tests
2018-12-04 11:10:57 -08:00
da44b0f0f6
Move markdown book theme to its default directory
...
It was getting in the way of my "git grep".
2018-12-04 10:14:41 -08:00
c1c2f1f0a9
Cleanup ad-hoc rpc address formation
...
Lots of places where we are forming rpc addresses.
2018-12-03 18:13:55 -08:00
777a0a858e
Move ProgramError into sdk/
2018-12-03 13:50:00 -08:00
68e99c18c0
Remove duplicate SYSTEM_PROGRAM_ID
2018-12-03 13:50:00 -08:00
c99f93e40a
Remove signature.rs indirection
2018-12-03 13:50:00 -08:00
969016b9e4
Integrate cleanup from book ( #1991 )
...
This is backwards. In the future, I'll make changes to the RFC
first. Once the design is implemented, it can be more of a copy-paste
into the book.
2018-12-03 11:53:03 -07:00
4ae58cc854
Change range of leader scheduler to match current broadcasts ( #1920 )
2018-12-03 00:10:43 -08:00
1fbbf13ec9
Dissuade DOCKER=1 usage
2018-12-02 23:15:43 -08:00
3f9dc08984
Use docker system includes that now exist
2018-12-02 23:04:00 -08:00
1ddf9960a6
Update to llvm 0.0.4
2018-12-02 21:30:57 -08:00
9f45c0eb03
Set OS correctly
2018-12-02 21:11:56 -08:00
67155861e5
generate.sh output
2018-12-02 21:11:56 -08:00
5111255942
Map native filesystem to same location within docker
2018-12-02 21:11:56 -08:00
b405deb55a
Always use llvm-native's include, as llvm-docker has no include
2018-12-02 21:11:56 -08:00
9b5368d0ec
fixes to rfcs ( #1976 )
2018-12-02 16:44:14 -07:00
f8aa806d77
Explain how ledger broadcasting works ( #1960 )
2018-12-02 16:43:40 -07:00
e98ef7306d
Update LLVM ( #1987 )
...
Build for all targets, use bzip2
2018-12-02 14:33:07 -08:00
188904c318
Fix Docker paths after move ( #1986 )
2018-12-02 13:47:05 -08:00
9594293804
Write versions in ..
2018-12-02 12:17:44 -08:00
814801d321
Restore OS macro
2018-12-02 12:17:44 -08:00
0896511b14
Echo install.sh output properly
2018-12-02 12:17:44 -08:00
222b177745
Echo cxx instead of cc when building c++ source files
2018-12-02 12:17:44 -08:00
4189a30b13
Check for version.md instead of README.md
2018-12-02 11:28:19 -08:00
f6f0a5d448
Store version info in version.md instead of README.md
2018-12-02 10:12:16 -08:00
b21facab7b
Add metrics for prune messages ( #1981 )
2018-12-01 14:05:40 -08:00
70312ed77f
Package package.sh to avoid a special case
2018-12-01 12:37:57 -08:00
ee9255cb1d
Avoid unnecessary llvm/ subdirectory
2018-12-01 12:37:57 -08:00
f045e19ddc
Remove version info from llvm/criterion install directory
2018-12-01 12:37:57 -08:00
3f1bececdf
Update location of bpf sdk
2018-12-01 12:37:57 -08:00
34c3a0cc1f
Add signature verification to gossip ( #1937 )
2018-12-01 12:00:30 -08:00
8ef73eee51
Reject builds faster: if sanity checks fail don't bother with the rest
2018-12-01 11:43:29 -08:00
e52f3f34a4
Autoinstall dependencies in the SDK itself
2018-12-01 10:47:59 -08:00
27b617b340
Remove upstream LLVM install instructions as we now (temporarily) bundle a forked LLVM
2018-12-01 10:47:59 -08:00
21a73d81ee
grooming
2018-12-01 10:47:59 -08:00
7c3e6e8e86
Move bpf-sdk to sdk/bpf
2018-12-01 10:47:59 -08:00
42dc18ddfc
Avoid exiting when cmd is not found
2018-11-30 20:44:34 -08:00
801df72680
h4,h5 font size increased
2018-11-30 18:03:55 -08:00
c8f161d17f
a custom mdbook theme implemented to improve book style and structure
2018-11-30 18:03:55 -08:00
549bfe7412
Vote signing JSON RPC service ( #1965 )
...
* Vote signing JSON RPC service
- barebone service that listens for RPC requests
* Daemon for vote signer service
* Add request APIs for JSON RPC
* Cleanup of cargo dependencies
* Fix compiler error
2018-11-30 15:07:08 -08:00
b00011a3f1
Use custom LLVM ( #1971 )
...
BPF SDK uses custom LLVM
2018-11-30 14:33:29 -08:00
3ca826a480
re-enable test_tpu_forwarder ( #1964 )
2018-11-30 13:52:37 -08:00
b8ebb4d609
Cleanup RFCs on branch generation and leader rotation ( #1967 )
...
* rework rfcs
* comments
2018-11-30 12:51:40 -08:00
5321b606c1
update gossip and entrytree RFCs ( #1972 )
2018-11-30 12:26:46 -08:00
a1ad74a986
Bump nix from 0.11.0 to 0.12.0
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/nix-rust/nix/releases )
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nix-rust/nix/compare/v0.11.0...v0.12.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2018-11-30 10:39:13 -07:00
29d95328ce
Use non-zero exit on channel determination failure
2018-11-30 08:50:17 -08:00
b2eeccbcc2
Find channel-info.sh
2018-11-30 08:49:49 -08:00
bad0b55ab6
Expose which keys signed the Transaction in the SDK
2018-11-30 08:16:23 -08:00
0878bd53d9
Delete stub src/transaction.rs
2018-11-29 23:07:57 -08:00
de910e1169
Make test_pubkey_distribution faster
...
multi-thread pubkey histogram generation.
2018-11-29 17:37:37 -08:00
f2cf647508
add entry-tree-cache and gossip rfc ( #1946 )
2018-11-29 15:44:58 -08:00
9684737de7
Add wait before checking confirm again
...
Otherwise we can quickly check that we
have no signature 4 times in a row.
2018-11-29 15:32:58 -08:00
ecc87ab1aa
Add a an optional timeout to thin_client
...
Such that a negative test like test_transaction_count doesn't
have to wait num_retries * default_timeout.
2018-11-29 13:53:40 -08:00
3cc0dd0d1e
stabilize testing with --test-threads=1
2018-11-29 12:54:42 -08:00
fa359c6fc4
Merge vote new and register transactions
2018-11-29 12:31:34 -08:00
5c71f2a439
Add ulimit check to stable test suite
...
cargo test needs larger ulimit than default as well.
2018-11-29 11:39:42 -08:00
8cc751d1cc
Improve RPC service startup error messages with actual error
...
Error always fixed to message about ports but that's not the only
error that can occur.
2018-11-29 11:39:42 -08:00
978fd6858f
Move replicator_startup_test to integration test set
...
Sometimes fails when run multithreaded with other tests.
2018-11-29 11:39:42 -08:00
41689256c6
Ensure key[0] is signed
2018-11-29 10:26:46 -08:00
99445f475b
Add leader rotation links
...
Avoid the term "leader selection" here. More precise terms are
"leader scheduling", "leader rotation", and "fork selection."
2018-11-28 18:08:05 -08:00
070d6a2faa
Drop mention of CLI tooling
...
This is a "how does it work?" chapter, not "how do I do it?"
2018-11-28 18:08:05 -08:00
3de63570f6
Better formatting and lots of terminology links
2018-11-28 18:08:05 -08:00
8d1ac37734
More terms
2018-11-28 18:08:05 -08:00
36503ead70
Fix capitalization
...
And delete JSON RPC Service for now, since it currently has no
content.
2018-11-28 18:08:05 -08:00
f4d3b3f0d6
Merged synchronization, PoH and VDF sections
2018-11-28 18:08:05 -08:00
acee1f7c6c
Merged synchronization, PoH and VDF sections
2018-11-28 18:08:05 -08:00
c242467fdf
Expland cluster overview, integrate Avalanche chapter
2018-11-28 18:08:05 -08:00
47ae25eeb9
Fix link
2018-11-28 17:48:41 -07:00
ddc4e7ffa0
use fewer transactions for the public, "welcome to Solana" demo
2018-11-28 16:23:22 -08:00
6a2ffafdb9
Update docker-solana location for CI
2018-11-28 16:20:02 -08:00
0c091c1b24
Dockerized LLVM ( #1914 )
...
Optionally build with dockererized custom llvm
2018-11-28 14:41:53 -08:00
55993ef0ce
RFC for rendezvous of vote signing service with validator node ( #1947 )
2018-11-28 14:19:57 -08:00
30a0820cbe
Update README.md
2018-11-28 13:33:55 -08:00
194e3100a9
Additional checks in test_bank_checkpoint_zero_balance ( #1943 )
2018-11-28 12:40:34 -08:00
8ad4464d4b
add tests for other "from" indexes signing (or not)
2018-11-28 07:56:04 -08:00
e7b0a736f5
verify signature is on the from account
2018-11-28 07:56:04 -08:00
fa4bdb4613
add --no-capture to get some logs from flaky tests
2018-11-27 23:24:20 -08:00
167eb01735
optimize bench-tps and rpc_request to work on crappy WSL boxes
2018-11-27 22:45:08 -08:00
8fb5d72b13
Make insufficient tokens message more helpful
2018-11-27 17:37:25 -08:00
83c0711760
Rename SolKeyedAccounts to SolKeyedAccount
2018-11-27 15:36:04 -08:00
8947c5a4aa
Set account to default if the balance reaches 0 in a checkpoint bank ( #1932 )
...
Fixes : #1931
2018-11-27 14:17:29 -08:00
a7562c9be1
Extract execute_transaction() from the bank
2018-11-27 12:35:52 -07:00
08dc169f94
Hoist load_loaders()
...
This makes execute_transactions() stateless.
2018-11-27 12:35:52 -07:00
f549d8ac74
Hoist loading of loaders
...
This might cause a TPS boost in batched BPF transactions, since
now it'll only clone its account once per transaction instead of
once per instruction.
2018-11-27 12:35:52 -07:00
1ac7536286
Pass executable_accounts into with_subset()
2018-11-27 12:35:52 -07:00
ec0a56cb9c
Tokens are unsigned
2018-11-27 10:14:37 -08:00
f0d24a68ee
Configure -rpath to locate libcriterion
2018-11-26 21:16:42 -08:00
2c529f2118
Ancestor verification for vote signing ( #1919 )
2018-11-26 19:26:54 -08:00
af1d9345e0
De-dup ci book build
2018-11-26 18:38:57 -08:00
03ce45d93a
Fix snap build
2018-11-26 18:38:48 -08:00
1695803248
added branch determination and enclave configuration section to encla… ( #1873 )
...
* added branch determination and enclave configuration section to enclave rfc
* spelling and grammar
2018-11-26 17:57:38 -08:00
58e3dd4cb6
Avoid trying to install svgbob when already installed
2018-11-26 17:18:55 -08:00
c7f678688d
Stub out log functions when building tests
2018-11-26 15:41:49 -08:00
7bf4c08f70
Add BPF C unittest framework
2018-11-26 12:25:29 -08:00
69beee5416
Install svgbob
2018-11-26 09:44:19 -08:00
2200a31331
Generate book images via Make
2018-11-26 09:44:19 -08:00
88e270723f
Move markdown book out of src/
2018-11-26 09:44:19 -08:00
a13e25f083
Ignore flaky test_tpu_forwarder
2018-11-26 09:27:21 -08:00
826ac80e62
Avoid subverting bool return value
2018-11-26 09:11:40 -08:00
4506584c48
Employ stdbool.h, add stub wchar.h
2018-11-26 09:11:40 -08:00
3d3a30e200
Fix mdbook test
2018-11-26 07:51:10 -08:00
76b83ac0f4
Move testnet demos into the book
...
Have git readme focus on fullnode development and the book focus on
users.
2018-11-26 07:51:10 -08:00
903a9bfd05
s/contract/program/
2018-11-26 08:20:42 -07:00
655ee1a64b
Fix typos
2018-11-26 08:20:42 -07:00
e0e6c3fdb2
Extract execute_instruction() to seed new runtime module
...
Fixes #1528
2018-11-26 08:20:42 -07:00
31f00974f2
Hoist the lookup of executable accounts
2018-11-26 08:20:42 -07:00
c3218bb9c2
Hoist tick_height
2018-11-26 08:20:42 -07:00
90fb6ed739
Bump itertools from 0.7.9 to 0.7.11
...
Bumps [itertools](https://github.com/bluss/rust-itertools ) from 0.7.9 to 0.7.11.
- [Release notes](https://github.com/bluss/rust-itertools/releases )
- [Commits](https://github.com/bluss/rust-itertools/compare/0.7.9...0.7.11 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2018-11-26 08:19:20 -07:00
d2972024de
Uppercase acronyms
...
Looks like there will be very little Rust code in the markdown book
so switching back to English capitalization conventions.
2018-11-25 22:58:07 -07:00
3f9ad1253d
Re-enable fixed tests ( #1907 )
2018-11-25 20:51:55 -08:00
a556a54dc9
Use title in link
2018-11-25 20:29:45 -07:00
dc0a2ca656
Move disclaimer down a bit
...
Odd to see a disclaimer before knowing anything about what you're reading
2018-11-25 20:27:35 -07:00
e9f986e54d
Boot comma
2018-11-25 20:22:46 -07:00
357d852382
Add title to markdown book
2018-11-25 20:19:45 -07:00
6e00c6790e
Move testnet metrics dashboard management out of the Grafana UI
2018-11-25 16:10:25 -08:00
f36604357e
Remove CUDA Snap references
2018-11-25 16:08:29 -08:00
c3fb9d5549
Cleanup book ( #1904 )
...
* Cleanup book
* Distinguish upstream from downstream validators
* Add BroadcastStage to Fullnode/Tpu diagrams
* First attempt to re-describe the runtime
* Reorg book
Push back details of the fullnode implementation
2018-11-25 16:58:38 -07:00
f5b5c54d7d
Update condition for nosigverify ( #1903 )
2018-11-25 13:11:07 -08:00
9f0b06bb86
Filter out leader node while retransmitting blobs ( #1894 )
2018-11-24 20:33:49 -08:00
57a384d6a0
Rocks db window service ( #1888 )
...
* Add db_window module for windowing functions from RocksDb
* Replace window with db_window functions in window_service
* Fix tests
* Make note of change in db_window
* Create RocksDb ledger in bin/fullnode
* Make db_ledger functions generic
* Add db_ledger to bin/replicator
2018-11-24 19:32:33 -08:00
69802e141f
Add the story of how this codebase came to be
2018-11-24 14:39:53 -07:00
6fc02b7424
Detect legacy programs upfront
2018-11-24 11:56:51 -07:00
30cdd85028
Implement the same interface in all builtin programs
2018-11-24 11:56:51 -07:00
871dd47019
Extract the part of execute_instruction that should only return a ProgramError
...
TODO: hoist load_executable_accounts() and then change
process_instruction() to return ProgramError.
2018-11-24 11:56:51 -07:00
37f8dd57e2
Extract ProgramError from BankError
2018-11-24 11:56:51 -07:00
f827bfd83f
Remove instruction index parameter
2018-11-24 11:56:51 -07:00
b3af930153
Rename process_transaction to process_instruction
2018-11-24 11:56:51 -07:00
cd488b7d07
Hoist program static methods to top-level functions
2018-11-24 11:56:51 -07:00
e2373ff51a
add nosigverify command line option to ease debug
2018-11-23 16:55:04 -08:00
b3d2c900cd
Rename BudgetState to BudgetProgram
2018-11-23 13:25:17 -07:00
d5adec20a3
get_ip_addr: Fall back to loopback if no better option exists
2018-11-23 13:24:41 -05:00
942256a647
Add db_ledger benchmarks ( #1875 )
...
* Add db_ledger benchmarks
* ignore benches in CI, due to timeouts
2018-11-23 06:12:43 -08:00
ca39486d06
Bump libc from 0.2.43 to 0.2.44
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.43 to 0.2.44.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.43...0.2.44 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2018-11-22 12:32:38 -07:00
db632fcc2a
Bump tokio from 0.1.11 to 0.1.13
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 0.1.11 to 0.1.13.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Changelog](https://github.com/tokio-rs/tokio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-0.1.11...tokio-0.1.13 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2018-11-22 11:12:46 -07:00
a3321a5d80
Fix endianess in db_ledger to account for the default byte-comparator used by Rocksdb ( #1885 )
2018-11-22 01:35:19 -08:00
521de13571
Add maximum repair length to db_window ( #1886 )
...
* Add maximum repair length to db_window
2018-11-21 23:44:49 -08:00
e6f91269ec
Use --no-tty with apt-key in Docker
2018-11-21 16:45:48 -08:00
3abf6a8a30
Reorg the markdown book to cater to app devs
...
First, talk about how a client interacts with Solana to do useful
things. Then describe how the fullnode you're talking to works and
why it's so very fast. Last, why that fullnode you don't trust
does what you asked it to anyway.
2018-11-21 15:49:57 -08:00
8d7f380dfd
Remove extra version check
2018-11-21 14:30:26 -08:00
59163e2dd9
Optimize some CI stuff ( #1880 )
...
* CI Optimizations
2018-11-21 12:16:16 -08:00
574021041d
Calculate tag in README
...
Don't have people test-driving old code. Latest tag should be good.
2018-11-21 11:17:23 -07:00
872adf1031
Update README.md
2018-11-20 16:48:18 -08:00
5fc1167802
Update README to say cuda 10.0
...
Prebuilts fetched with fetch-perf-libs are built
with cuda 10 now.
2018-11-20 10:07:15 -07:00
c89a09e5d0
Fix build issue seen when launching gce instance ( #1874 )
2018-11-20 07:37:16 -08:00
d9dabdfc74
Rocks db window utils ( #1851 )
...
* Implement new ledger module based on RocksDb
* Add db_window module for windowing functions from RocksDb
2018-11-19 23:20:18 -08:00
6b910d1bd4
add tpu_forwarding, simplify ClusterInfo::new() from Result<Self> to Self
2018-11-19 20:45:49 -08:00
1c4f799845
alphabetize deps ( #1872 )
2018-11-19 20:13:09 -08:00
bbd9ea8c00
Delete settings.rs.foo
2018-11-19 13:39:08 -08:00
fc67a968e8
Use known keys in the unit test to avoid random false positives.
2018-11-19 13:41:24 -07:00
3d113611cc
remove Result<> return from ClusterInfo::new() ( #1869 )
...
strip Result<> for ClusterInfo::new()
2018-11-19 11:25:14 -08:00
c1af48bd85
Rename program_id => owner
2018-11-18 16:24:13 -08:00
07667771ef
Fix Gossip Pushes going to invalid addresses ( #1858 )
2018-11-17 19:57:28 -08:00
3822c29415
Route program_id to program entrypoint
2018-11-17 19:42:03 -08:00
ff386d6585
Add disclaimer to markdown book
...
copy-paste from readme
2018-11-17 19:56:08 -07:00
e3ddfd8dff
Remove budget RFC
...
It describes the wallet CLI, not the Budget program. And all the
same content is now maintained in src/wallet.md.
2018-11-17 19:52:00 -07:00
f0c79fdbca
Delete 0005-branches-tags-and-channels.md
2018-11-17 18:34:47 -08:00
88ddb31477
teminology cleanup: leader slots and voting rounds
2018-11-17 18:56:13 -07:00
077d1a41f1
Add too book
2018-11-17 18:56:13 -07:00
857ab8662e
backticks and missing variable descriptions
2018-11-17 18:56:13 -07:00
a17f9bd0f4
Work towards adding leader rotation to the book
2018-11-17 18:56:13 -07:00
f4b9e93b11
Migrate storage RFC to book
2018-11-17 18:55:08 -07:00
2c11bf2e66
Various book cleanup
...
* Merge Leader and Validator diagrams
* New sdk-tools diagram
* Move terminology to just after introduction
* Purge use of LAMPORT as an acronym
* Add notes about persistent storage
2018-11-17 17:50:29 -08:00
0e33773e92
Copy release docs into RELEASE.md
...
Once the repo implements something proposed in an RFC, no need to acknowledge its existence.
@mvines, please update this if it's no longer accurate.
2018-11-17 18:48:53 -07:00
719e14b30a
Add an explicit state of a reserved signature
...
An RPC client that fetches the signature status before the bank finishes
executing the corresponding Transaction should receive SignatureNotFound
instead of Confirmed
2018-11-17 16:40:23 -08:00
38883d1de4
Clarify comment
2018-11-17 16:40:23 -08:00
c6c8351fca
Update env_logger requirement from 0.5.12 to 0.6.0
...
Updates the requirements on [env_logger](https://github.com/sebasmagri/env_logger ) to permit the latest version.
- [Release notes](https://github.com/sebasmagri/env_logger/releases )
- [Commits](https://github.com/sebasmagri/env_logger/commits/v0.6.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2018-11-17 16:30:44 -08:00
043f50487a
Document patch version updates after a release is made
2018-11-17 16:29:19 -08:00
3a2b91f1b7
Add Cargo.lock to avoid getting broken by random upstream changes
2018-11-17 15:54:21 -08:00
a76d11d486
Don't ignore Cargo.lock
2018-11-17 15:54:21 -08:00
d1f01b5209
Fix clippy lint
2018-11-17 15:54:21 -08:00
7a54dbf7d5
Restore clippy, and run clippy sooner
2018-11-17 15:54:21 -08:00
33a5d5fe93
Enable debug builds by default for better backtraces
2018-11-17 10:52:08 -08:00
201a4b7b2a
Advance input pointer correctly
2018-11-17 10:30:21 -08:00
591a28d516
Avoid extra commit when publishing book
2018-11-17 10:17:52 -08:00
22d160a3c3
Install drone
2018-11-17 17:20:15 +00:00
903c82d7f1
Add timeouts
2018-11-17 09:09:25 -08:00
b2e0395f19
Bump release tarball build timeout (ahem rocksdb)
2018-11-17 08:12:03 -08:00
d96a6b42a5
Move drone into its own crate
2018-11-16 20:42:21 -08:00
cf95708c18
Set drone address to always be the initial network entry point ( #1847 )
...
* Set drone address to always be the initial network entry point, so that even when leaders rotate the client can still find the drone
* Extract drone address as a separate argument to bench-tps
* Add drone port to client.sh instead of setting it in bench-tps
* Add drone entrypoint to scripts
* Fix build error
2018-11-16 19:56:26 -08:00
7fe50d6402
Temporarily disable clippy
2018-11-16 19:55:33 -08:00
e1c7b99450
Accounts get kicked if no tokens
2018-11-16 18:53:37 -08:00
12ae7b9a6b
Add test for tvu POH verification ( #1844 )
2018-11-16 15:48:10 -08:00
6ac5700f2e
Move metrics into its own crate
2018-11-16 15:10:07 -08:00
a0dd8617be
Remove airdrop from fullnode
2018-11-16 13:25:55 -08:00
1576072edb
remove spurious eprintln!()
2018-11-16 10:21:58 -08:00
03d206a7ca
Check for valid tvu, not tpu in broadcast ( #1836 )
2018-11-15 23:30:22 -08:00
c973de1d76
Decouple log and metrics rate ( #1839 )
...
Use separate env for log and metrics rate.
Set default log level to WARN if unset.
2018-11-15 22:27:16 -08:00
71336965a6
Limit targets to 4 in bench-tps
...
Transaction got bigger so can only fit 4 targets in a
Transaction now.
2018-11-15 20:25:07 -08:00
e791d0f74d
Drone now returns signed airdrop transactions
2018-11-15 17:13:13 -08:00
3543a9a49f
Add check for missing signature with fee'ed transaction
...
And update fetch-perf-libs version
2018-11-15 16:23:13 -08:00
7dd198a99e
Change signed_key to index into account_keys
...
If index is within the signed keys range.
2018-11-15 16:23:13 -08:00
e048116ab2
Remove signed_keys
...
Use first signatures.len() of account_keys for signing
2018-11-15 16:23:13 -08:00
cda9ad8565
Multiple signatures for transactions
...
With multiple instructions in a TX may need
multiple signatures.
Fixes #1531
2018-11-15 16:23:13 -08:00
928f375683
Rocks db ( #1792 )
...
* Add rocksdb crate
* Implement new ledger module based on RocksDb
2018-11-15 15:53:31 -08:00
d3e521f70e
accept other socket errors, ignore unless out of tries ( #1835 )
2018-11-15 15:49:37 -08:00
96e03eca14
Remove unused dependency
2018-11-15 15:13:50 -08:00
659dfbf51f
cargo:rerun always triggers if file does not exist
2018-11-15 14:59:54 -08:00
a7ee428214
Fix build
2018-11-15 14:06:57 -08:00
a41254e18c
Add scalable gossip library ( #1546 )
...
* Cluster Replicated Data Store
Separate the data storage and merge strategy from the network IO boundary.
Implement an eager push overlay for transporting recent messages.
Simulation shows fast convergence with 20k nodes.
2018-11-15 13:23:26 -08:00
4a3230904e
Specify rpc port
2018-11-15 12:32:15 -08:00
c81a3f6ced
Fix RPC address clashes on local multi-node testnet ( #1821 )
...
* Fix RPC address clashes on local multi-node testnet
2018-11-15 10:42:02 -08:00
a5412fc0cd
Fix find port functions
2018-11-15 10:45:39 -07:00
83fc3c10cf
Setup CUDA env for local builds
2018-11-15 08:00:52 -08:00
6b6c87e510
Run BPF tests in CI
2018-11-14 17:16:37 -08:00
267f9115ba
Add drone RFC ( #1754 )
...
* Add stamps RFC
* Don't use the language 'load the program'
* Replace stamps RFC with new more general drone design
* Fix typo
* Describe potential techniques for getting recent last_ids
2018-11-14 15:19:34 -08:00
39c87fd103
Add BPF benchmarks
2018-11-14 12:06:06 -08:00
2ad2fdd235
Remove inline simple program to avoid maintenance burden
2018-11-14 10:39:22 -08:00
1fda4b77ef
Expose tick_height to bpf programs
2018-11-14 10:33:27 -08:00
5a8938209b
Expose tick_height to native programs
2018-11-14 10:33:27 -08:00
0bf2ff6138
Add convenience macro for native program entrypoint
2018-11-14 10:33:27 -08:00
e33f3a2562
Publish expected native program entrypoint in sdk/
2018-11-14 10:33:27 -08:00
bba19ce667
Catch up to solana-genesis tokens argument name change
2018-11-14 09:55:33 -08:00
9bf2d1d7b4
Publish BPF SDK to a channel-specific URL to ease downstream pickup
2018-11-14 09:36:44 -08:00
9fe210c454
Add host information to db entries ( #1778 )
...
Add new field to each db entry identifying the host
that it originated from.
2018-11-13 21:54:15 -08:00
f99fae3c61
Use exact solana-rbpf version, not maintaining backward compatibility
2018-11-13 17:45:46 -08:00
860dcdb449
Stubs for some libc headers
2018-11-13 17:44:46 -08:00
70cebaf74a
Add size_t/ssize_t/sol_memset/sol_strlen
2018-11-13 17:44:46 -08:00
317fe19da7
Fix INC_DIRS usage
2018-11-13 17:44:46 -08:00
e7b6c8b7e0
Accounts get kicked if no tokens
2018-11-13 17:23:13 -08:00
478ba75d6b
Update featurized test
2018-11-13 17:19:10 -08:00
4e553ea095
test_replicate fails locally, ignore
2018-11-13 17:13:25 -08:00
0c46f15f94
test_rpc_new fails locally, ignore for now
2018-11-13 17:12:25 -08:00
7b92497d21
Update counters irrespective of logging level ( #1799 )
2018-11-13 16:55:14 -08:00
4668a798ca
Fix Sagar and I crossing wires ( #1810 )
2018-11-13 15:18:54 -08:00
729d28d910
Add poh verification before processing entries
...
- Replicate stage now verifies entries delivered
by the window
- Minor refactor of entries_from_blobs
2018-11-13 14:17:00 -08:00
66e9d30fda
Change testnet automation to use TAR instead of snap ( #1809 )
2018-11-13 13:33:15 -08:00
6335be803c
Broadcast last tick before leader rotation ( #1766 )
...
* Broadcast last tick before leader rotation to everybody on network
* Add test
* Refactor broadcast
2018-11-13 02:21:37 -08:00
a77b1ff767
Revert "Migrate from ring to ed25519-dalek" ( #1798 )
...
* Revert "Migrate from ring to ed25519-dalek"
This reverts commit 7c610b216b
.
* Fix test failures with revert
2018-11-12 22:34:43 -08:00
1f6ece233f
Remove unused path
2018-11-12 22:24:56 -08:00
d53077bb3e
Activate perf-libs compatible CUDA env
2018-11-12 22:24:56 -08:00
2b44d5fb6a
Fix snap PR builds
2018-11-12 22:24:56 -08:00
10e1e0c125
Switch to perf-libs v0.11.0 for CUDA 10 support
2018-11-12 20:58:52 -08:00
017c281eaf
Remove CUDA support from Snap
2018-11-12 20:31:16 -08:00
c5b1bc1128
Remove obsolete update-default-cuda.sh
2018-11-12 20:31:16 -08:00
dafdab1bbc
Add clang dependency to docker images, update validation checks ( #1794 )
2018-11-12 19:36:36 -08:00
d0ebee5e3b
Correct path to solana-perf-CUDA_HOME.txt
2018-11-12 19:17:54 -08:00
aa7c741ec0
Switch to perf-libs v0.10.6
2018-11-12 19:17:54 -08:00
9e7b9487b0
perf-libs now drives setting CUDA_HOME
2018-11-12 18:49:15 -08:00
c7a67b5a02
Add deploy command to test
2018-11-12 18:21:16 -07:00
0e749dad4c
Use cluster_info to get rpc address
2018-11-12 18:21:16 -07:00
fa72160c95
add last_id to Entry, PohEntry ( #1783 )
...
add prev_id to Entry, PohEntry
2018-11-12 17:03:23 -08:00
851e012c6c
Upgrade EC2 image to 18.04 with CUDA 9.2 and 10
2018-11-12 15:17:34 -08:00
7f76403d0a
Clean ~/solana during network start to avoid tripping over leftover files
2018-11-12 15:09:14 -08:00
126f065cc9
Extract complex loop from execute_instruction
2018-11-12 14:47:23 -08:00
7ee4dec3f1
Upgrade GCE GPU image to 18.04
2018-11-12 12:18:50 -08:00
c07d09c011
Add net/scp.sh for easier file transfer to/from network nodes
2018-11-12 11:48:53 -08:00
4d98da44e3
Fix possibility of a vote error breaking ledger ( #1768 )
...
* Fix possibility of a vote error breaking ledger
* Add test
2018-11-12 11:40:32 -08:00
15c00ea2ef
Improve comments
2018-11-12 10:59:01 -08:00
522876c808
Rename Account.program_id to Account.owner
2018-11-12 10:59:01 -08:00
7d05cc8c5d
Add missing account fields
2018-11-12 10:59:01 -08:00
49f4be6a2b
codemod --extensions rs loader_program_id loader
2018-11-12 10:59:01 -08:00
e702515312
Add basic C++ support
2018-11-12 09:08:40 -08:00
5fce8d2ce1
Don't ignore VoteProgram errors
2018-11-11 22:18:06 -07:00
2696b22348
Cleanup TVU diagram
2018-11-11 20:55:21 -08:00
5df4754579
Don't call instructions transactions
2018-11-11 20:07:15 -08:00
a00284c727
Remove userdata diff and make helper fn
2018-11-11 18:57:28 -07:00
3832602ec4
Move notifications after store_accounts
2018-11-11 18:57:28 -07:00
3466f139a4
set -e shuffling
2018-11-11 16:24:36 -08:00
def7d156f6
codemod --extensions sh '#!/usr/bin/env bash -e' '#!/usr/bin/env bash\nset -e'
2018-11-11 16:24:36 -08:00
33aab094ef
codemod --extensions sh '#!/bin/bash' '#!/usr/bin/env bash'
2018-11-11 16:24:36 -08:00
cf6f344ccc
Add CUDA_HOME env var to permit overriding the CUDA install location
2018-11-11 16:24:18 -08:00
b670b9bcde
Regenerate identity files in CI
2018-11-11 09:22:52 -07:00
fea86b2955
No longer serialize as JSON-encoded pkcs8
...
That's supposed to be an ASCII format, but we're not making use
of it. We can switch back to that some day, but if we do, it shouldn't
be JSON-encoded.
2018-11-11 09:22:52 -07:00
7c610b216b
Migrate from ring to ed25519-dalek
...
Why?
* Pure Rust, no BoringSSL (or OpenSSL) dependency
* Those avx2 benchmarks
* ring includes far more than what we need
* ring author won't add release tags: https://github.com/briansmith/ring#versioning--stability
2018-11-11 09:22:52 -07:00
bec34496f1
Generate id.json earlier
2018-11-10 18:05:55 -08:00
49014393e1
Be less fancy for bash 4.4 compat
2018-11-10 18:05:55 -08:00
818d03c835
Bump earlyoom version
2018-11-10 15:56:17 -08:00
cdf1a96e23
Revert "V1 Window/Ledger based on RocksDb ( #1712 )"
...
This reverts commit bfcdec95cb
.
2018-11-09 20:25:53 -07:00
bfcdec95cb
V1 Window/Ledger based on RocksDb ( #1712 )
...
* Add rocksdb
* Implement new ledger module based on RocksDb
2018-11-09 18:30:26 -08:00
fc55835932
Revert "Boot rpc_port"
...
This reverts commit 1984b6db06
.
2018-11-09 17:52:10 -07:00
3772910bf2
Boot rpc_port
2018-11-09 17:52:10 -07:00
24379c14dc
Fix clippy warnings
2018-11-09 17:52:10 -07:00
23846bcf1c
Don't require a cluster to query for one's own pubkey
2018-11-09 17:52:10 -07:00
9dd0a6e6a7
Boot drone_addr and rpc_addr from config
...
WalletConfig is intended for the validated command-line input.
2018-11-09 17:52:10 -07:00
5ca473ac2d
Don't get the network from parse_args
2018-11-09 17:52:10 -07:00
e1a551e8f2
Create target/ if it doesn't exist yet
2018-11-09 12:03:07 -08:00
0926702269
Fix grcov download on macos and upload gcda/gcdo files for debugging
2018-11-09 11:19:28 -07:00
0a85347a0d
Upgrade Rust stable to 1.30.1
...
Fixes `cargo doc`
2018-11-09 07:46:51 -08:00
fb59f73c1a
Link readme to book ( #1750 )
...
* Link readme to book
2018-11-09 07:27:03 -07:00
eaa8b9cb1e
Publish book
2018-11-09 02:13:59 -07:00
b8261d7d83
Determine network version for tar and local deploys
2018-11-08 22:02:42 -08:00
f5827d4a83
Fix typo
2018-11-08 17:15:48 -07:00
b0f8a983c4
Add the solana-wallet documentation ( #1744 )
...
* Add the solana-wallet documentation
There doesn't seem to be a way to publish bin docs to crates.io.
Until there is, we can include CLI documentation is the appendix
of the markdown book.
* A command to generate all the usage docs
Usage:
$ scripts/wallet-help.sh >> src/wallet.md
2018-11-08 15:42:20 -07:00
56c77bf482
Add IntelliJ files to ignore
2018-11-08 13:00:00 -08:00
d831c5dcc9
remove dead poh code ( #1747 )
2018-11-08 12:55:23 -08:00
ce474eaf54
Better titles for tpu and tvu
2018-11-08 11:33:52 -07:00
0da1c06b15
Add disk to the hardware used by both Tpu and Tvu
2018-11-08 11:33:52 -07:00
01edc94a4b
Move description of the Rust flavor of stages to service.rs
2018-11-08 11:33:52 -07:00
f96563c3f2
Add documentation for pipelining
2018-11-08 11:33:52 -07:00
30697f63f1
add support for slots in erasure ( #1736 )
2018-11-08 10:20:03 -08:00
433fcef70b
Enclave RFC updates for PoH verification ( #1739 )
...
* Enclave RFC updates for PoH verification
* fix spelling error
2018-11-08 06:52:14 -08:00
34b5b3d9c5
Add TODO in logs section
2018-11-07 20:46:57 -08:00
ea8b19a40f
Update testnet info
2018-11-07 20:43:51 -08:00
b0405db5a9
Assign static IPs to {edge,beta}.testnet.solana.com
2018-11-07 20:11:00 -08:00
f34f0af6b1
Install native programs in the correct location
2018-11-07 19:44:57 -08:00
51ed48941b
Continue if docker0 is not present
2018-11-07 19:33:20 -08:00
22b6cbb4da
Switch testnet to AWS
2018-11-07 18:57:08 -08:00
87ac549689
Work around AWS key management limitation
2018-11-07 18:48:27 -08:00
2a6046de8e
Cleanup TVU code to look like its block diagram ( #1737 )
...
* Reorg TVU code to look like TVU diagram
And move channel creation into LedgerWriteStage so that it can
be used in the same was as all the other stages.
* Delete commented out code
2018-11-07 19:25:36 -07:00
25dd5145bb
Switch to us-west-1a, us-west-1b is causing trouble
2018-11-07 18:23:28 -08:00
f8f11b7f50
Remove docker0 interface if present
2018-11-07 18:23:24 -08:00
82f914e0dc
Work around AWS boot check weirdness
2018-11-07 15:46:04 -08:00
3b41eec199
Shuffle AWS regions
2018-11-07 15:00:55 -08:00
9359cc69d5
Invert gpu check
2018-11-07 14:44:40 -08:00
b02b636b36
Support local tarball deploys
2018-11-07 14:44:40 -08:00
a537154c28
Remove all cuda dependencies from release tarball beyond solana-fullnode-cuda
2018-11-07 14:44:40 -08:00
39e1bdeb71
Initial RFC for use of enclave for vote signing ( #1734 )
...
* Initial RFC for use of enclave for vote signing
* Fix grammar
* address review comments
2018-11-07 14:36:16 -08:00
43bd28cdfa
Add loader_ prefix to LoaderTransaction methods
2018-11-07 15:06:38 -07:00
6c10458b5b
leader slots in Blobs ( #1732 )
...
* add leader slot to Blobs
* remove get_X() methods in favor of X() methods for Blob
* add slot to get_scheduled_leader()
2018-11-07 13:18:14 -08:00
3ccbf81646
Update README.md
2018-11-07 13:04:14 -08:00
2e38cd98c0
Update README.md
2018-11-07 12:58:24 -08:00
7780d9bab8
Add ledger write and storage stage to TVU documentation
2018-11-07 12:07:12 -08:00
8feed96eac
Update README.md
2018-11-07 11:19:37 -08:00
16d23292dc
Improve error messages
2018-11-07 10:35:10 -08:00
812a8bcc6c
Permit release tag tarballs
2018-11-07 10:33:58 -08:00
63807935cb
Switch testnet/testnet-beta to tarball release
2018-11-07 10:30:02 -08:00
92a8b646df
Fix tarball publishing for tags
2018-11-07 10:26:19 -08:00
d9f9e347ab
Delete testnet-master, testnet-master-perf
2018-11-07 10:08:29 -08:00
2ef8ebe111
AWS AMIs are region specific
2018-11-07 10:05:58 -08:00
038a46b5ef
Integrate the markdown book into the codebase
...
This implies that the book should describe exactly what is implemented,
and will not lead the way and eventually bitrot as the RFCs do.
2018-11-07 10:58:47 -07:00
3852ad3048
Make markdown docs more modular
...
No need to assume the book context.
2018-11-07 10:58:47 -07:00
1075a73902
Elf relocations ( #1724 )
...
Use relocatable BPF ELFs
2018-11-07 09:40:23 -08:00
863a0c3f8f
s/edge/beta/
2018-11-07 08:54:32 -08:00
f8673931b8
Increase boot timeout
2018-11-07 08:32:15 -08:00
dd4fb7aa90
Add AWS-based nets
2018-11-07 07:47:39 -08:00
2af5aad032
Switch testnet/testnet-perf to the latest beta or stable tag
2018-11-07 07:47:39 -08:00
9027141ff8
Publish release tarballs for tags
2018-11-07 07:47:39 -08:00
c4bc331663
Add support for using a release tar
2018-11-07 07:47:39 -08:00
8be7c13d2d
Stub out architecture book ( #1674 )
...
* Stub out architecture documentation
* Add book HTML generation and book tests to CI
* Add heading
* Better table of contents
* Reference existing documentation
Move ASCII art from code comments into rendered SVG
* Attempt to fix CI
* Add lamport docs
And truncate lines to 80 characters
* Fix links
And reference shorter, newer description of PoH.
* Replace ASCII art with SVG
* Streamline for Pillbox
* Update path before optional install
* Use $CARGO_HOME instead of $HOME
* Delete code
Attempt to describe all data structures without code.
* Boot RPU from docs, add JsonRpcService
Also, use Rust naming conventions in the block diagrams to
minimize the jump from docs to code.
* Latest code uses tick_height
* Rename bob/ folder to art/
A home for any ASCII art
* Import JSON RPC API
* More mdbook docs
* Add Ncp
* Cleanup links
* Move pipelining description into fullnode description
* Move high-level transaction docs into top-level doc
* Delete unused files
2018-11-06 18:00:58 -07:00
d7ea66b6a1
RPC and Pubsub, bind to 0.0.0.0
2018-11-06 15:45:36 -07:00
371c69d425
Add ledger write stage counters ( #1713 )
2018-11-06 14:44:54 -08:00
c9c1564d26
Fetch v0.10.5 perf libs ( #1727 )
...
- includes SGX enclave for signing
2018-11-06 14:20:22 -08:00
cd18a1b7db
t
2018-11-06 14:08:47 -08:00
6aac096c77
Add timeout to prevent a stuck ssh
2018-11-06 14:08:28 -08:00
7b58bd621a
Remove node check from client start-up
...
If the network loses a validator or two, it's the job of the sanity
check to detect this not the bench clients
2018-11-06 13:57:06 -08:00
9b43b00d5c
remove tick_count, leader_scheduler, from broadcast code ( #1725 )
2018-11-06 13:17:41 -08:00
76694bfcf4
remove entry_writer.rs ( #1720 )
2018-11-06 12:42:31 -08:00
bfad138bb3
Pass any serializable to Transaction constructor
2018-11-06 11:23:59 -07:00
d8d23c9971
Remove unused debug trace
2018-11-06 09:29:39 -08:00
f77b30e81d
Fix link
2018-11-06 09:28:55 -07:00
d379478603
Rename stable testnets back to beta
2018-11-06 09:27:40 -07:00
2600684999
Move testnet docs into readme
...
Also, described testnet and testnet-perf as stable instead of beta.
2018-11-06 09:27:40 -07:00
54968b59bb
Update last_id between client retries
...
Fixes #1694
2018-11-06 09:06:15 -07:00
6b5d12a8bb
Set metrics database correctly
2018-11-06 07:25:18 -08:00
c4b9d5d8b9
Remove stray line
2018-11-05 20:53:34 -08:00
f683817b48
Remove RPU; replace with RPC
2018-11-05 20:30:47 -07:00
52491b467a
Update testnet deploy docs
2018-11-05 19:12:55 -08:00
7789fda016
Add testnet-manager pipeline
2018-11-05 17:35:30 -08:00
22abc27be4
add tests for bank.purge() ( #1711 )
2018-11-05 16:43:27 -08:00
c9138f964b
Change token type from i64 to u64
...
Fixes #1526
2018-11-05 15:25:26 -07:00
c4346e6191
Add testnet pipeline for prebuilt images ( #1708 )
...
* Add testnet pipeline for prebuilt images
- It'll speed up testnet testing for released images
* removed quotes from variable
* address review comments
* fix testnet automation error
2018-11-05 13:50:33 -08:00
1a7830f460
Set imageName if G
2018-11-05 13:33:42 -08:00
b418c1abab
ignore multinode demo logs
2018-11-05 10:57:51 -08:00
1fbf1d2cf2
Add checkpoint, rollback to to bank ( #1662 )
...
add linked-list capability to accounts
change accounts from a linked list to a VecDeque
add checkpoint and rollback for lastids
add subscriber notifications for rollbacks
checkpoint transaction count, too
2018-11-05 09:47:41 -08:00
5a85cc4626
Rename buildkite-snap to buildkite-secondary
2018-11-05 08:47:51 -08:00
8041461a07
Bump EC2 validator machine type
2018-11-05 08:47:51 -08:00
2ce72a1683
Update version in readme
2018-11-05 08:05:03 -07:00
eae9372a5d
Upgrade GCP CPU-based testnet to 18.04
2018-11-04 19:18:47 -08:00
ed09b2bdb8
Document BPF C program limitations
2018-11-04 12:31:38 -08:00
1d7722043f
genesis has 3 entries now
2018-11-02 22:02:13 -07:00
95f9488a70
use default buffer size for index, use BLOB_DATA_SIZE for data buffer ( #1693 )
2018-11-02 21:52:57 -07:00
e7cbbd8d45
cargo fmt
2018-11-02 19:54:49 -07:00
c8c255ad73
Rename Budget to BudgetExpr
2018-11-02 19:54:49 -07:00
a264f8fa9b
Fix |cargo test|
2018-11-02 19:04:59 -07:00
40e945b0c8
Move token_program from src/ to programs/native/
2018-11-02 18:13:02 -07:00
f3b04894b9
Try harder to snap download
2018-11-03 00:29:13 +00:00
35b7e50166
Rebase on new RFC file naming
2018-11-02 16:52:21 -06:00
6b3f684e2a
elw staking rfc revisions
2018-11-02 16:50:06 -06:00
63c66ce765
initial staking design overview
2018-11-02 16:50:06 -06:00
0636399b7a
Compute finality computation in new ComputeLeaderFinalityService ( #1652 )
...
* Move finality computation into a service run from the banking stage, ComputeLeaderFinalityService
* Change last ids nth to tick height, remove separate tick height from bank
2018-11-02 15:49:14 -07:00
2c74815cc9
ci: correct crates.io publishing order
2018-11-02 15:39:24 -07:00
298bd6479a
Add first leader to genesis ( #1681 )
...
* Add first leader to genesis entries, consume in genesis.sh
* Set bootstrap leader in the bank on startup, remove instantiation of bootstrap leader from bin/fullnode
* Remove need to initialize bootstrap leader in leader_scheduler, now can be read from genesis entries
* Add separate interface new_with_leader() in mint for creating genesis leader entries
2018-11-02 14:32:05 -07:00
a8481215fa
Model the process after Rust's RFC process
2018-11-02 14:55:39 -06:00
b7545b08fa
Add process for making architectural changes
2018-11-02 14:55:39 -06:00
cf8f3bcbed
Ship native programs in snap
2018-11-01 15:59:41 -07:00
b8534a402d
shell
2018-11-01 15:25:27 -07:00
45b9a7f8e9
shell
2018-11-01 14:40:21 -07:00
879431ebcd
Add timeout to TcpStream connect, and rename test
2018-11-01 14:13:19 -06:00
102354c218
Add balance check retries
2018-11-01 11:28:33 -06:00
af1283e92c
Improve airdrop confirmation logic
2018-11-01 11:28:33 -06:00
6b777b066a
Find clang 7 better
...
If LLVM_DIR is defined, use it to locate clang. Otherwise use brew on
macOS, and assume clang-7 otherwise
2018-11-01 09:48:38 -07:00
1e01088698
Improve clang install info for Linux
2018-11-01 09:48:38 -07:00
3ea0651078
Rename sol_bpf.h to solana_sdk.h
2018-10-31 23:46:34 -07:00
776b1c2294
sol_bpf.h improvements
...
- Define NULL
- Add sol_memcmp()
- Use sizeof() more
- Add SOL_ARRAY_SIZE
- Make sol_deserialize() more flexible
2018-10-31 23:46:34 -07:00
dffa2eb04f
Do not parallelize deserialize operation ( #1663 )
...
Deserialize operations are faster when done serially with the
MT banking stage and helps with performance improvement with
reduced thread context switches.
2018-10-31 22:12:15 -07:00
5ecb9da801
Fix up bpf numeric types
2018-10-31 20:53:44 -07:00
00889c5139
Fix bad function arguments ( #1682 )
2018-10-31 19:55:58 -07:00
af8dc3fd83
Fix snap build
...
cuda and chacha features required for chacha_cuda
2018-10-31 17:59:31 -07:00
ba884b4e36
Add thin client test for vote functionality, fix sizing errors in vote contract ( #1643 )
...
* Added tests to thin client to test VoteContract calls, fix VoteContract sizing errors
* Calculate upper bound on VoteProgram size at runtime, add test for serializing/deserializing a max sized VoteProgram state
2018-10-31 17:47:50 -07:00
6ddd494826
Improve rpc logging
2018-10-31 15:21:55 -06:00
aa2fd3f3bb
Storage RFC grammar
2018-10-31 13:44:21 -07:00
cf00354f42
Add storage stage which does storage mining verification for validators
2018-10-31 13:44:21 -07:00
47f1fa3f2e
Remove purging of leader id from cluster info ( #1642 )
2018-10-31 12:30:48 -07:00
db98f7e0b4
Use env variables to disable validator sanity and ledger verification ( #1675 )
2018-10-31 12:30:33 -07:00
38ee5c4dfb
Program may not exit ( #1669 )
...
Cap max executed instructions, report number of executed instructions
2018-10-31 10:59:56 -07:00
aca2f9666d
Fix deps ( #1672 )
2018-10-31 10:12:17 -07:00
b74e085538
SYSTEM_INC_DIRS needs immediate expansion
2018-10-31 07:20:09 -07:00
899de2ff56
Revert inclusion change, fix doc
2018-10-31 07:03:38 -07:00
cf521a5bd2
Fix const
2018-10-31 07:03:38 -07:00
bc13248e1c
Fix C programs
2018-10-31 07:03:38 -07:00
0529f36fde
Run workspace member's tests ( #1666 )
...
Run workspace member's tests
2018-10-30 22:53:36 -07:00
74b4ecb7f3
Upgrade to influx_db_client@0.3.6
2018-10-30 19:44:09 -07:00
333f658eb6
Fix lua_loader tests ( #1665 )
2018-10-30 18:36:18 -07:00
7cb5c0708b
Fetch v0.10.4 which has v100 binary compiled in
...
This may or may not fix high latencies seen on the snap build on v100.
GPU driver will not have to JIT the device code for V100 though which
is an improvement.
2018-10-30 18:06:16 -07:00
85869552e0
Update testnet scripts to use release tar ball ( #1660 )
...
* Update testnet scripts to use release tar ball
* use curl instead of s3cmd
2018-10-30 18:05:38 -07:00
6f9843c14b
Publish a tarball of Solana release binaries ( #1656 )
...
* Publish a tarball of solana release binaries
* included native programs in Solana release tar
* Remove PR check from publish script
2018-10-30 15:31:52 -07:00
7d44f60e45
Find native program with solana_ prefix
2018-10-30 13:13:37 -07:00
8d16f69bb9
Improve account subscribe/unsubscribe logging
2018-10-30 12:03:35 -07:00
3a73a09391
Avoid panicking when a native library doesn't exist
2018-10-30 12:03:35 -07:00
009c71f7e2
Demote info logs
2018-10-30 12:03:35 -07:00
073d39df44
Add solana_ prefix to loaders so their logs appear in the default RUST_LOG config
2018-10-30 12:03:35 -07:00
ae7222f0df
Work around influxdb panic
2018-10-30 12:03:35 -07:00
4d6c54272a
Tweak logging
2018-10-30 12:03:35 -07:00
13bfdde228
remove ledger tail code, WINDOW_SIZE begone ( #1617 )
...
* remove WINDOW_SIZE, use window.window_size()
* move ledger tail, redundant with ledger-based repair
2018-10-30 10:05:18 -07:00
3cc78d3a41
Added a new remote node configuration script to set rmem/wmem ( #1647 )
...
* Added a new remote node configuration script to set rmem/wmem
* Update common.sh for rmem/wmem configuration
2018-10-30 09:17:35 -07:00
45bb97cad6
Permit {INC,LLVM,OUT,SRC,SYSTEM_INC}_DIRs to be overridden
2018-10-30 07:59:07 -07:00
546e4c5696
Remove bpf tictactoe
2018-10-29 21:43:37 -07:00
6b1917b931
Add programs/bpf/c/sdk entries
2018-10-29 20:52:38 -07:00
30b22c8b78
Use NUM_KA
2018-10-29 20:52:38 -07:00
6f5e92e5b3
README updates
2018-10-29 20:52:38 -07:00
cce5c70f29
LD -> LLC
2018-10-29 20:52:38 -07:00
4af7c82ef0
Add extern "C" block
2018-10-29 20:52:38 -07:00
52e5fb7e0c
Use #pragma once, it's widely supported
...
Fix up some spelling too
2018-10-29 20:52:38 -07:00
a013e8ceb1
Rename sol_bpf_c.h to sol_bpf.h
2018-10-29 20:52:38 -07:00
864632b582
slight reformatting
2018-10-29 20:52:38 -07:00
71d6eaacef
Apply some const
2018-10-29 20:52:38 -07:00
4aba05d749
Include system includes in .d, remove unneeded tabs
2018-10-29 20:52:38 -07:00
7d335165ec
Tune make output
2018-10-29 19:32:47 -07:00
37213209c5
Create programs/bpf/c/sdk/
2018-10-29 19:10:29 -07:00
fbde9bb731
Run bench-tps for longer duration in testnet ( #1638 )
...
- Increased to 2+ hours
2018-10-29 15:03:08 -07:00
f6b1b5ab37
Remove unnecessary checks
2018-10-29 13:27:52 -07:00
7abd456d45
Increase rmem and wmem for remote nodes in testnet ( #1635 )
2018-10-29 13:04:54 -07:00
f12743de38
Create/publish bpf-sdk tarball
2018-10-29 12:54:57 -07:00
77e10ed757
Add utility to figure the current crate version
2018-10-29 12:54:57 -07:00
ebcb9a2103
Add llvm install info
2018-10-29 10:00:45 -07:00
6fb2e080bc
Ignore out/
2018-10-29 10:00:45 -07:00
3ac5ffc188
Use V=1 for verbosity, easier to type
2018-10-29 10:00:45 -07:00
88187ef282
Find llvm using brew on macOS
2018-10-29 10:00:45 -07:00
489894cb32
Mention logs more
2018-10-27 08:49:52 -07:00
be003970b7
Program_ids were overlapping ( #1626 )
...
Program_ids were overlapping
2018-10-26 19:44:53 -07:00
3488ea7d1c
Cleanup c programs ( #1620 )
...
Cleanup C programs
2018-10-26 19:38:07 -07:00
9a6a399a29
Bump version number to pick up fixed cuda library
...
Has fix for unaligned memory access in chacha_encrypt_many_sample
function.
2018-10-26 14:57:14 -07:00
7ab65352be
Fix featurized integration test ( #1621 )
...
Fix featurized integration test
2018-10-26 11:53:44 -07:00
b28fbfa13e
Use a smaller test value for window_size
...
Otherwise this test takes forever to run.
2018-10-26 11:38:55 -07:00
07c656093c
Remove tictactoe programs
2018-10-25 21:22:07 -07:00
c9e8346e6a
cargo fmt
2018-10-25 17:24:24 -07:00
9e5ac76855
0.11.0
2018-10-25 17:19:07 -07:00
f671b7f63f
Publish root crate too
2018-10-25 17:16:18 -07:00
236113e417
cargo fmt
2018-10-25 17:13:41 -07:00
a340b18b19
Upgrade to rust 1.30
2018-10-25 17:13:41 -07:00
f6c8e1a4bf
Vote contract ( #1552 )
...
* Add Vote Contract
* Move ownership of LeaderScheduler from Fullnode to the bank
* Modified ReplicateStage to consume leader information from bank
* Restart RPC Services in Leader To Validator Transition
* Make VoteContract Context Free
* Remove voting from ClusterInfo and Tpu
* Remove dependency on ActiveValidators in LeaderScheduler
* Switch VoteContract to have two steps 1) Register 2) Vote. Change thin client to create + register a voting account on fullnode startup
* Remove check in leader_to_validator transition for unique references to bank, b/c jsonrpc service and rpcpubsub hold references through jsonhttpserver
2018-10-25 16:58:40 -07:00
160cff4a30
Check for TRIGGERED_BUILDKITE_TAG
2018-10-25 16:37:54 -07:00
48685cf766
0.10.0-pre2
2018-10-25 16:19:31 -07:00
0f32102684
Restrict characters to those supported by semvar_bash
2018-10-25 16:19:00 -07:00
d46682d1f2
Restrict characters to those supported by semvar_bash
2018-10-25 16:12:29 -07:00
55833e20b1
Create Poh Service ( #1604 )
...
* Create new Poh Service, replace tick generation in BankingStage
2018-10-25 14:56:21 -07:00
02cfa76916
Plumb GetTransactionCount through solana-wallet
2018-10-25 14:58:51 -06:00
9314eea7e9
Add leader-readiness test to wallet-sanity
2018-10-25 14:58:51 -06:00
1733beabf7
mv common/ sdk/
2018-10-25 13:26:10 -07:00
471d8f6ff9
Fix up the version references to all other internal crates
2018-10-25 12:54:32 -07:00
e47fcb196b
s/solana_program_interface/solana[_-]sdk/g
2018-10-25 12:31:45 -07:00
3ae53961c8
Support prerelease versioning
2018-10-25 12:31:45 -07:00
113b002095
Delete programs/native/move_funds
2018-10-25 11:37:38 -07:00
9447537d8c
Increment internal Cargo references to solana_program_interface
2018-10-25 11:03:03 -07:00
7404b8739e
Make template headers smaller
2018-10-25 11:51:37 -06:00
7239395d95
Add Issue and PR templates
2018-10-25 11:51:37 -06:00
926d459c8f
Script away cargo version bumping
2018-10-25 09:38:58 -07:00
7cabe203dc
Sync version with top-level Cargo.toml
2018-10-25 09:38:58 -07:00
1e53f4266a
Fetch perf-libs with configurable packet size
...
sig verify library uses passed in size directly
to get packet size, so rust side can be modified
without changing cuda library.
2018-10-25 08:26:35 -07:00
24b513c3c7
Migrate to latest rbpf ( #1605 )
...
Migrate to updated rbpf
2018-10-25 02:58:04 -07:00
b982595c73
Add version check and rustup
2018-10-24 19:48:58 -07:00
af8a36b7fb
Exclude chacha_cuda when chacha is disabled
2018-10-24 17:02:46 -07:00
208e7d7943
Explicitly reject transactions larger than PACKET_SIZE
2018-10-24 15:34:27 -07:00
557736f1cf
Split leader rotation into separate RFC
2018-10-24 13:16:06 -06:00
61927e1941
Fix compile error for write_entries
...
Takes a reference now.
2018-10-24 11:31:30 -07:00
fc75827aaf
.gitignore *.log
2018-10-24 10:58:27 -07:00
2f2531d921
Add retries to Wallet deploy
2018-10-24 11:13:32 -06:00
d5f20980eb
Incorporate preloaded bpf loader
2018-10-24 11:13:32 -06:00
21eae981f9
Add deploy method to solana-wallet
2018-10-24 11:13:32 -06:00
ead7f4287a
Storage mining fixups...
...
* Use IV to make unique identies
* Use hex! macro for hex literal and not string converted to u8 slice
* fix sha sampling to control init/end of sha state
2018-10-24 09:58:41 -07:00
3b33150cfb
Bump drone read timeout to 10s
...
The previous timeout of 3s was not generous enough occasionally
2018-10-24 08:52:41 -07:00
6d34a68e54
Ignore test_leader_restart_validator_start_from_old_ledger ( #1586 )
...
Ignore test_leader_restart_validator_start_from_old_ledger
2018-10-23 18:10:31 -07:00
5c483c9928
remove unused variable
2018-10-23 16:52:56 -06:00
a68c99d782
Fix transaction count on testnet dashboard
2018-10-23 16:52:56 -06:00
0aebbae909
Fix message
2018-10-23 15:45:58 -07:00
a3a2215bda
Fix warning
2018-10-23 15:45:58 -07:00
eb377993b3
Debug scripts point to debug flavor ( #1585 )
2018-10-23 14:48:50 -07:00
5ca52d785c
Preload BPF loader ( #1573 )
...
Preload BPF loader
2018-10-23 14:44:41 -07:00
8d9912b4e2
Move ledger write to its own stage ( #1577 )
...
* Move ledger write to its own stage
- Also, rename write_stage to leader_vote_stage, as write functionality
is moved to a different stage
* Address review comments
* Fix leader rotation test failure
* address review comments
2018-10-23 14:42:48 -07:00
c77b1c9687
i
2018-10-23 14:14:09 -07:00
8849ecd772
capture consensus discussion of 10/10/2018
2018-10-23 15:07:58 -06:00
7977b97227
Surface AccountInUse to JSON RPC users so they know to retry the transaction
2018-10-23 13:55:30 -07:00
4f34822900
Improve logging on various error conditions
2018-10-23 13:40:59 -07:00
bbb38ac106
Increase window size ( #1578 )
...
Addresses the following problem
- Validators are not able to keep up with the leader
- The future blobs (outside of window) get dropped
- The validators won't process repair requests for these future blobs
2018-10-23 10:25:01 -07:00
ce934a547e
Storage RFC validator incentive clarification
2018-10-23 09:46:38 -06:00
16b19d35dd
Disable test_boot_validator_from_file ( #1576 )
2018-10-23 00:47:15 -07:00
45cfa5b574
Add instruction to transfer account ownership
2018-10-20 21:54:25 -05:00
df9ccce5b2
Remove hostname() from calls to metrics as it's expensive operation ( #1557 )
2018-10-20 06:38:20 -07:00
f8516b677a
Load program data in chunks ( #1556 )
...
Load program data in chunks
2018-10-19 18:28:38 -07:00
dfde83bdce
Wildcard early OOM deb package revision ( #1554 )
2018-10-19 14:17:19 -07:00
cb0f19e4f1
Shield rerun-if-changed under the feature flags so
...
that cargo watch doesn't cause re-build every iteration.
2018-10-19 12:07:29 -07:00
26b99d3f85
Ensure witness and timestamp keys are signed
...
Before this patch, an attacker could point Budget instructions to
unsigned keys, and authorize a transaction from an unauthorized
party.
2018-10-19 10:06:59 -06:00
2f9c0d1d9e
Add method to lookup signed keys
2018-10-19 10:06:59 -06:00
0423cafbeb
Cleanup and update Smart Contracts Engine RFC to what is currently in the code ( #1539 )
...
* Cleanup and update to the state of the code
* update
* render
* render
* comments on memory allocation
2018-10-19 06:08:49 -07:00
0bd1412562
Switch leader scheduler to use PoH ticks instead of Entry height ( #1519 )
...
* Add PoH height to process_ledger()
* Moved broadcast_stage Leader Scheduling logic to use Poh height instead of entry_height
* Moved LeaderScheduler logic to PoH in ReplicateStage
* Fix Leader scheduling tests to use PoH instead of entry height
* Change is_leader detection in repair() to use PoH instead of entry height
* Add tests to LeaderScheduler for new functionality
* fix Entry::new and genesis block PoH counts
* Moved LeaderScheduler to PoH ticks
* Cleanup to resolve PR comments
2018-10-18 22:57:48 -07:00
0339642e77
Added TicTacToe Dashboard and tests ( #1547 )
...
* Add tictactoe dashboard and tests
2018-10-18 14:19:25 -07:00
37a0b7b132
Initial validator code for rust side hooks for chacha cuda parallel encrypt
2018-10-18 13:50:19 -07:00
c30b605047
Actually submit the storage mining proof
...
Get an aidrop so replicator can submit mining transaction
Some other minor type cleanup.
2018-10-18 13:50:19 -07:00
76076d6fad
move last_id age checking into the HashMap
...
* allows for simpler chaining of banks
* looks 1.5-2% faster than looping through a VecDequeue
TODO: remove timestamp()?
2018-10-18 11:07:00 -07:00
0a819ec4e2
Programs were not spawned by SystemProgram ( #1533 )
...
* SystemProgram spawns programs
2018-10-18 10:33:30 -07:00
57a717056e
Delegate accounts now record the original approved amount
2018-10-18 08:53:25 -07:00
856c48541f
Restore elaborate attack
...
The test is showing how you can sneak by verify_plan() but not
verify_signature().
2018-10-18 08:46:02 -06:00
2045091c4f
Add SystemProgram::Move ix to Budget tx
2018-10-18 08:46:02 -06:00
03ac5a6eef
Move all source tokens into Budget account
...
Budget now assumes the source account holds all tokens the program
should spend.
Note: the static guarantees implied by verify_plan() are meaningless
under the new contract engine. The bank no longer calls it. This
serves as a nice example of where comparing code coverage between
integration tests and unit tests would have shown us where a
change rendered unit tests meaningless.
2018-10-18 08:46:02 -06:00
32fadc9c30
Merge debits and credits
...
Debits no longer need to be applied before credits. Instead, we
lock any accounts we'd debit and so error out on the second attempt
to lock the same account.
2018-10-18 08:46:02 -06:00
15a89d4f17
Boot Contract type from Budget
...
In the old bank (before the contract engine), Contract wasn't specific
to Budget. It provided the same service as what is now called
SystemProgram::Move, but without requiring a separate account.
2018-10-18 08:46:02 -06:00
d0f43e9934
consolidate tmp ledgers
2018-10-18 08:45:31 -06:00
31e779d3f2
Added counters to track more metrics on dashboard ( #1535 )
...
- Total number of IP packets TX/RX from all nodes in the testnet
- Last consumed index on validator
- Last transmitted index on leader
2018-10-17 17:32:50 -07:00
30c79fd40d
Change validator node machine type ( #1537 )
...
- The current nodes are using lower RAM compared to leader/clients
2018-10-17 17:16:50 -07:00
639c93460a
Write stage optimizations ( #1534 )
...
- Testnet dashboard shows that channel pressure for write stage
is incrementing on every iteration of write.
- This change optimizes ledger writing by removing cloning of map
and reducing calls to flush
2018-10-17 13:02:32 -07:00
7611730cdb
move off /tmp
2018-10-17 12:15:30 -07:00
9df9c1433a
remove another use of /tmp
2018-10-17 12:15:30 -07:00
4ea422bcec
run integration tests serially
2018-10-17 11:37:10 -07:00
6074e4f962
Attempt to stabilize the test suite
...
The integration tests are allowed to open sockets, so running them
in parallel may cause "Too many open files" errors. This patch
runs the unit tests in parallel and the integration test serially.
2018-10-17 11:37:10 -07:00
d52e6d01ec
typo in readme
2018-10-17 02:04:05 -06:00
63caca33be
SystemProgram test was failing due to expected panic
2018-10-16 18:02:44 -07:00
64efa62a74
enable logging in loaders
2018-10-16 16:55:11 -07:00
912eb5e8e9
remove bank.is_leader, dead code ( #1516 )
2018-10-16 15:26:44 -07:00
bb628e8495
Rename loaders
2018-10-16 14:27:08 -07:00
d0c19c2c97
cargo fmt
2018-10-16 14:11:04 -07:00
926fdb7519
Rename dynamic_program.rs to native_loader.rs
2018-10-16 14:11:04 -07:00
c886625c83
Move from solana/rbpf fork to qmonnet/rbpf ( #1511 )
2018-10-16 13:13:54 -07:00
f6c10d8a2e
Add channel pressure for validator TVU stages ( #1509 )
2018-10-16 12:54:23 -07:00
2bd877528f
Par process entries ( #1499 )
...
* Parallel entry processor.
2018-10-16 12:09:48 -07:00
d09889b1dd
Program bank integration ( #1462 )
...
Native, BPF and Lua loaders integrated into the bank
2018-10-16 09:43:49 -07:00
1b2e9122d5
Pubsub listen on random open port when rpc does (quiet some test errors)
2018-10-16 00:11:26 -06:00
7424388924
Fix session drop
2018-10-16 00:11:26 -06:00
537436bd5e
RPC PubSub now uses a well-known socket
2018-10-16 00:11:26 -06:00
32fc0cd7e9
Fix bug introduced during RUST_LOG escaping ( #1507 )
...
* Fix bug introduced during RUST_LOG escaping
- remote node configuration should not be quoted
* shellcheck disable SC2090
2018-10-15 16:49:22 -07:00
fb99494858
Improve rpc code coverage ( #1487 )
2018-10-15 11:01:40 -06:00
5b4d4b97bc
Upgrade to latest stable Rust, 1.29.2
2018-10-15 09:54:24 -06:00
c5180c8092
Permit RUST_LOG overrides
2018-10-14 12:40:37 -07:00
515c200d86
Refactor and add test for new Entry::serialized_size()
2018-10-14 10:53:47 -06:00
32aab82e32
Don't allocate to see if transactions will fit in a blob
2018-10-14 10:53:47 -06:00
6aaa350145
effeciently pack gossip responsens and only respond up to max size. ( #1493 )
2018-10-14 06:45:02 -07:00
d3b4dfe104
Add bool return to entrypoint signature to permit programs to fail transactions
2018-10-13 20:01:43 -07:00
9fc30f6db4
Escape RUST_LOG configuration in remote-node.sh ( #1489 )
...
* Escape RUST_LOG configuration in remote-node.sh
- If it was set to #, it was causing other parameters to be commented out
* escape other variables as well
* disabled shell check
* Fix shellcheck error
2018-10-13 13:35:54 -07:00
2d0f07091d
Handle dynamic program dlopen failures gracefully
2018-10-13 11:31:10 -07:00
3828eda507
Demote log messages
2018-10-13 11:31:10 -07:00
1e736ec16d
Demote log messages
2018-10-12 20:16:57 -07:00
bba6437ea9
Use a single structure for last_ids and last_ids_sigs
2018-10-12 16:39:35 -07:00
e5ab9a856c
Upload bench output as build artifacts ( #1478 )
...
* Upload bench output as build artifacts
* Fix tags types
* Pull previous stats from metrics
* Change the default branch for comparison
* Fix formatting
* Fix build errors
* Address review comments
* Dedup some common code
* Add eval for channel info to find branch name
2018-10-12 15:13:10 -07:00
1515bba9c6
Use cluster_info in rpc to get current leader addresses ( #1480 )
2018-10-12 14:25:56 -06:00
14a9ef4bbe
move PoH verification off bank.last_id() ( #1476 )
2018-10-12 11:50:34 -07:00
041040c659
pubsub.rs -> rpc_pubsub.rs
2018-10-12 08:39:06 -07:00
47f69f2d24
1) Switch broken tests to generate an empty tick in their ledgers to use as last_id, 2) Fix bug where PoH generator in BankingStage did not referenced the last tick instead of the last entry on startup, causing ledger verification to fail on the new tick added by the PoH generator ( #1479 )
2018-10-12 00:39:10 -07:00
9dd4dc2088
Mark failing tests as ignore
2018-10-11 15:32:36 -07:00
b534c32ee3
New minor version for jsonrpc crates
2018-10-11 13:35:06 -06:00
d2712f1457
Specify patch for jsonrpc crates
2018-10-11 11:38:14 -07:00
183f560d06
Add raw entries interface to ledger for getting slices as [u8]
2018-10-11 09:40:34 -07:00
ae150c0897
Remove getAddress, it doesn't exist
2018-10-11 08:28:39 -07:00
606e1396cf
Fix link
2018-10-11 08:25:38 -07:00
5c85e037f8
Tick entry ids as only valid last_ids ( #1441 )
...
Generate tick entry ids and only register ticks as the last_id expected by the bank. Since the bank is MT, the in-flight pipeline of transactions cannot be close to the end of the queue or there is a high possibility that a starved thread will encode an expired last_id into the ledger. The banking_stage therefore uses a shorter age limit for encoded last_ids then the validators.
Bench client doesn't send transactions that are older then 30 seconds.
2018-10-10 17:23:06 -07:00
5c523716aa
Ship native programs
2018-10-10 16:49:48 -07:00
5f8cbf359e
Use cdylib to avoid runtime libstd dependencies
2018-10-10 16:49:48 -07:00
e83834e6be
Build native programs in release configuration
2018-10-10 16:49:48 -07:00
02225aa95c
Look for native programs in same directory as the current executable
2018-10-10 16:49:48 -07:00
9931ac9780
Leader scheduler plumbing ( #1440 )
...
* Added LeaderScheduler module and tests
* plumbing for LeaderScheduler in Fullnode + tests. Add vote processing for active set to ReplicateStage and WriteStage
* Add LeaderScheduler plumbing for Tvu, window, and tests
* Fix bank and switch tests to use new LeaderScheduler
* move leader rotation check from window service to replicate stage
* Add replicate_stage leader rotation exit test
* removed leader scheduler from the window service and associated modules/tests
* Corrected is_leader calculation in repair() function in window.rs
* Integrate LeaderScheduler with write_stage for leader to validator transitions
* Integrated LeaderScheduler with BroadcastStage
* Removed gossip leader rotation from crdt
* Add multi validator, leader test
* Comments and cleanup
* Remove unneeded checks from broadcast stage
* Fix case where a validator/leader need to immediately transition on startup after reading ledger and seeing they are not in the correct role
* Set new leader in validator -> validator transitions
* Clean up for PR comments, refactor LeaderScheduler from process_entry/process_ledger_tail
* Cleaned out LeaderScheduler options, implemented LeaderScheduler strategy that only picks the bootstrap leader to support existing tests, drone/airdrops
* Ignore test_full_leader_validator_network test due to bug where the next leader in line fails to get the last entry before rotation (b/c it hasn't started up yet). Added a test test_dropped_handoff_recovery go track this bug
2018-10-10 16:49:41 -07:00
2ba2bc72ca
Cleanup multisig lua
2018-10-10 17:17:17 -06:00
45b8ba9ede
Demo M-N multisig library in Lua
2018-10-10 17:17:17 -06:00
40968e09b7
Do a *little* more than noop
2018-10-10 15:57:30 -07:00
262f26cf76
SystemProgram transactions now fail on invalid arguments
2018-10-10 15:19:03 -07:00
785c619198
Add pubsub module for rpc info subscriptions ( #1439 )
2018-10-10 14:51:43 -06:00
24a993710d
Avoid panic when account.source is None
2018-10-10 10:53:00 -07:00
c240bb12ae
Change buildkite agent for testnet automation
2018-10-09 15:04:55 -07:00
eed3b9db94
Add ERC20-like Token program
2018-10-09 12:53:37 -07:00
29a8823db1
Env variables for testnet-automation parameters ( #1455 )
...
- This will enable us to create custom pipelines for field events
2018-10-09 11:50:56 -07:00
a80955eacb
Change format of data for TPS/Finality metrics in testnet automation ( #1446 )
...
* Change format of data for TPS/Finality metrics in testnet automation
* Revert number of nodes for testnet automation
* Split python command to its own script
* Fix python command line arguments
2018-10-09 10:35:01 -07:00
9716c3de71
Add an abort test to justify a key field
2018-10-09 11:06:48 -06:00
34fa3208e0
Demo self-modifying Lua program
...
Also, drop dependency on bincode.
2018-10-09 11:06:48 -06:00
9c4e19958b
Use accounts[1] for Lua code and tx userdata as arg data
...
This makes the Lua version nearly identical to the C one.
2018-10-09 11:06:48 -06:00
0403299728
Add context-free Lua smart contracts
...
lua_State is not preserved across runs and account userdata is not converted into
Lua values. All this allows us to do is manipulate the number of tokens
in each account and DoS the Fullnode with those three little words,
"repeat until false".
Why bother? Research. rlua's project goals are well-aligned with the LAMPORT runtime.
What's next:
* rlua to add security limits, such as number of instructions executed
* Add a way to deserialize Account::userdata OR use Account::program_id
to look up a metatable for lua_newuserdata().
2018-10-09 11:06:48 -06:00
95701114e3
Crdt -> ClusterInfo
2018-10-09 03:49:39 -06:00
a99d17c3ac
put temp, test files in OUT_DIR ( #1448 )
2018-10-08 16:15:17 -07:00
517149d325
Move rpc request methods from wallet into separate module
2018-10-08 13:02:08 -06:00
32aa2575b5
Purge BudgetTransaction from entry
2018-10-08 11:34:04 -07:00
8fe7b96629
Purge BudgetTransaction from banking_stage
2018-10-08 11:34:04 -07:00
9350619afa
log to influx once ( #1438 )
2018-10-06 14:37:14 -07:00
d8d8f0bfc8
Fund all the keys with move many transactions ( #1436 )
...
* Fund all the keys with move many transactions
* logs
2018-10-05 16:45:27 -07:00
0a39722719
Add support to trigger testnet from a PR ( #1434 )
...
* Add support for different node counts
* Update variable names
* Delete network even after failures
* Add array for node counts
* Changed number of nodes to a space separated string of numbers
* Adjust number of nodes
* Snap will not be published if the env variable DO_NOT_PUBLISH_SNAP is set
* Address review comments
* Replaced influx db URL
2018-10-05 16:32:05 -07:00
9c0fa4d1d2
Upload coverage HTML reports ( #1421 )
...
Uploads two reports to Buildkite, one from cargo-cov and one from lcov via grcov. The lcov one is busted on linux and is what we need to bring codecov.io back up again. It works great on macos if you wanted to generate them locally and prefer lcov HTML reports.
* Also comment out non-coverage build to speed things up.
2018-10-05 10:17:35 -07:00
da0404ad03
Reduce maintenance of maintainers list
2018-10-04 23:05:08 -07:00
b508fdb62c
Cleanup field names
2018-10-04 16:51:05 -07:00
680f90df21
Fix comment
2018-10-04 14:21:06 -07:00
1a68807ad9
Enable mt-bank ( #1368 )
...
* Enable mt-bank
* cleanup and interleaving lock tests
2018-10-04 13:15:54 -07:00
d901767b54
Makefile is not relevant
2018-10-04 10:35:48 -07:00
13d4443d4d
Add BPF support & C-based BPF tic-tac-toe ( #1422 )
...
Add initial support for BPF and a C port of tictactoe
2018-10-04 09:44:44 -07:00
74b63c12a0
Add tests to LeaderScheduler to increase code coverage
2018-10-03 21:58:29 -07:00
cd42f6591a
PR fixes - remove redundant case
2018-10-03 21:58:29 -07:00
5491422b12
Fix validator_to_leader_transition test to not start up tpu after shutting down tvu, as the tpu now outputs ticks that will mess up the verification check
2018-10-03 21:58:29 -07:00
23f3ff3cf0
Added LeaderScheduler module and tests
2018-10-03 21:58:29 -07:00
f90488c77b
Demote 'not enough peers in crdt table' log message
2018-10-02 22:00:54 -07:00
beb4536841
Run a fullnode+drone automatically when the container starts up
2018-10-02 18:09:35 -07:00
3fa46dd66d
Add replicator sha sampling
...
replicator will submit mining proofs with the result of sampling
the encrypted file with a hashing algorithm.
2018-10-02 17:04:46 -07:00
ad5fcf778f
Publish minimal Solana docker images to dockerhub
2018-10-02 16:57:48 -07:00
83b000ae88
Remove SNAP_ prefix
2018-10-02 16:57:48 -07:00
33e179caa6
Update sha2 requirement from 0.7.0 to 0.8.0
...
Updates the requirements on [sha2](https://github.com/RustCrypto/hashes ) to permit the latest version.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/commits/sha2-v0.8.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com >
2018-10-02 09:00:05 -06:00
b1e941cab9
Return all instances
2018-10-01 07:51:48 -07:00
6db961d256
Correct comment
2018-09-30 00:08:09 -07:00
83409ded59
Correctly deserialize large userdata
2018-09-29 19:39:54 -07:00
396b2e9772
Ignore keep alive for completed games
2018-09-29 19:39:54 -07:00
94459deb94
Disable codecov.io reporting
2018-09-28 19:19:16 -07:00
660af84b8d
Use the same versions of llvm-cov and libprofile
2018-09-28 19:19:16 -07:00
7b31020903
Add back llvm-dev for llvm-cov
2018-09-28 19:19:16 -07:00
9a4143b4d9
Upgrade llvm-dev and boot kcov
...
Need clang-dev, not llvm-dev because cargo-cov looks for libprofile
in a clang installation directory.
2018-09-28 19:19:16 -07:00
aebc47ad55
Attempt coverage reporting
2018-09-28 19:19:16 -07:00
b6b5455917
Fix test in coverage build
2018-09-28 19:19:16 -07:00
5bc01cd51a
Revive code coverage
2018-09-28 19:19:16 -07:00
c79acac37b
Add tic-tac-toe dashboard program
2018-09-28 18:48:34 -07:00
a5f2aa6777
s/grid/board/g
2018-09-28 18:48:34 -07:00
4169e5c510
Simplify game setup messaging
2018-09-28 18:48:34 -07:00
0727c440b3
Add KeepAlive message so players can detect abandoned games
2018-09-28 18:48:34 -07:00
19a7ff0c43
Pin down nightly in benchmark build
2018-09-28 19:29:50 -06:00
5f18403199
Upgrade nightly
2018-09-28 19:29:50 -06:00
9f325fca09
Re-enable cargo audit
2018-09-28 17:53:41 -06:00
10d08acefa
Reenable cargo audit
2018-09-28 17:53:41 -06:00
52d50e6bc4
Update for new solana-jsonrpc
2018-09-28 17:53:41 -06:00
e7de7c32db
Transactions with multiple programs. ( #1381 )
...
Transactions contain a vector of instructions that are executed atomically.
Bench shows a 2.3x speed up when using 5 instructions per tx.
2018-09-28 16:16:35 -07:00
a5f07638ec
Use static str define for ledger files
2018-09-28 14:23:37 -07:00
aa2a3fe201
Add chacha module to encrypt ledger files
2018-09-28 14:23:37 -07:00
abd13ba4ca
move program tests to integration
2018-09-28 11:30:10 -07:00
485ba093b3
Install kcov to CI environment
2018-09-28 11:20:27 -06:00
36b18e4fb5
Create new wallet on each run of wallet-sanity
2018-09-28 07:39:31 -07:00
8d92232949
Specify zone
2018-09-28 07:32:49 -07:00
e4d8c094a4
Include -z when deleting network
2018-09-27 21:27:09 -07:00
d26e1c51a9
0.10.0
2018-09-27 16:38:53 -07:00