Rob Walker
be31da3dce
lastidnotfound step 2: ( #1300 )
...
lastidnotfound step 2:
* move "record stage", aka poh_service into banking stage
* remove Entry.has_more, is incompatible with leader rotation
* rewrite entry_next_hash in terms of Poh
* simplify and unify transaction hashing (no embedded nulls)
* register_last_entry from banking stage, fixes #1171 (w00t!)
* new PoH doesn't generate empty ledger entries, so some fixes necessary in
multinode tests that rely on that (e.g. giving validators airdrops)
* make window repair less patient, if we've been waiting for an answer,
don't be shy about most recent blobs
* delete recorder and record stage
* make more verbost thin_client error reporting
* more tracing in window (sigh)
2018-09-21 21:01:13 -07:00
sakridge
54b407b4ca
Wait on blob fetch before window, Seems to fix instability ( #1304 )
...
also cleanup ledger.
2018-09-21 18:56:20 -07:00
Tyera Eulberg
e87cac06da
Request/reqwest improvements
...
- Use json macro to simplify request builds
- Add proxy option for reqwest to use TLS
- Add rpc port options for configured nodes
2018-09-21 18:06:20 -06:00
Tyera Eulberg
ad4fef4f09
Doc for rpc_port configuration
2018-09-21 18:06:20 -06:00
Tyera Eulberg
e3b3701e13
Add RPC port option to fullnode
2018-09-21 18:06:20 -06:00
Tyera Eulberg
9228fe11c9
Port Wallet to jsonrpc and fix tests
2018-09-21 18:06:20 -06:00
carllin
5ab38afa51
Changed the window_service in Replicator to send entries instead of blobs ( #1302 )
2018-09-21 16:50:58 -07:00
Rob Walker
e49b8f0ce7
Update poh_service.rs
2018-09-21 16:03:54 -07:00
carllin
c50ac96f75
Moved deserialization of blobs to entries from replicate_stage to window_service ( #1287 )
2018-09-21 16:01:24 -07:00
sakridge
a9355c33b2
Placeholder storage contract and replicator client ( #1286 )
...
* Add hooks for executing the storage contract
* Add store_ledger stage
Similar to replicate_stage but no voting/banking stuff, just convert
blobs to entries and write the ledger out
* Add storage_addr to tests and add new NodeInfo constructor
to reduce duplication...
2018-09-21 15:32:15 -07:00
Rob Walker
3dcee9f79e
Update poh_service.rs
2018-09-21 08:01:24 -07:00
Michael Vines
2614189157
cargo fmt
2018-09-20 19:46:20 -07:00
Michael Vines
beeb09646a
suppress warning: unused variable: recycler
2018-09-20 19:46:20 -07:00
Michael Vines
67f1fbab5f
Treat rustc warnings as errors in CI
2018-09-20 19:46:20 -07:00
Tyera Eulberg
c0e7e43e96
fixup! s/contract/program
2018-09-20 19:33:54 -07:00
Anatoly Yakovenko
9bfead2e01
s/contract/program
2018-09-20 19:33:54 -07:00
Greg Fitzgerald
6073cd57fa
Boot Recycler::recycle()
2018-09-20 17:08:51 -06:00
Michael Vines
5174be5fe7
Rename getAccount to getAccountInfo
2018-09-20 15:18:56 -07:00
Rob Walker
62a18d4c02
step one of lastidnotfound: record_stage->record_service, trim recorder to hashes ( #1281 )
...
step one of lastidnotfound
* record_stage->record_service, trim recorder to hashes
* doc updates, hash multiple without alloc()
cc #1171
2018-09-20 15:02:24 -07:00
Michael Vines
a6c15684c9
Avoid panicking invalid instructions
2018-09-20 14:08:39 -07:00
Michael Vines
5691bf557c
Handle bad account userdata better
2018-09-20 14:08:39 -07:00
Michael Vines
8f01f7cf21
Trace syscalls for more helpful logs
2018-09-20 14:08:39 -07:00
Michael Vines
bb8c94ad2c
Add getAccount JSON RPC request
2018-09-20 13:58:15 -07:00
Greg Fitzgerald
d98e35e095
Delete no longer used PaymentPlan trait
2018-09-20 14:22:45 -06:00
Greg Fitzgerald
3163fbad0e
Remove 'Plan' indirection since it's implied by BUDGET_CONTRACT_ID
2018-09-20 14:22:45 -06:00
Greg Fitzgerald
0172422961
Require a self-assigned account ID
2018-09-20 14:16:14 -06:00
Rob Walker
8ccfb26923
tests for my IP picker
2018-09-20 09:21:09 -07:00
Rob Walker
12a474b6ee
sort local interfaces before selecting one
2018-09-20 09:21:09 -07:00
Greg Fitzgerald
270fd6d61c
Fix compiler warnings
2018-09-20 09:47:36 -06:00
carllin
7b9c7d4150
Cleaned up find_leader_rotation function. Added testing for WriteStage find_leader_rotation_index() function ( #1276 )
2018-09-19 18:16:00 -07:00
Carl
55126f5fb6
Marked Tvu functionality in Fullnode as unused for now
2018-09-19 16:05:31 -07:00
Anatoly Yakovenko
431692d9d0
Use a Drop trait to keep track of lifetimes for recycled objects.
...
* Move recycler instances to the point of allocation
* sinks no longer need to call `recycle`
* Remove the recycler arguments from all the apis that no longer need them
2018-09-19 16:59:42 -06:00
Michael Vines
6732a9078d
Clarify AfterTimestamp wire format
2018-09-19 13:28:35 -07:00
sakridge
2981076a14
Add solana-upload-perf to parse json from bench and upload to influx ( #1166 )
2018-09-19 13:16:55 -07:00
Tyera Eulberg
5740ea3807
RFC 006: Wallet CLI
2018-09-19 12:10:53 -06:00
Carl
cd2d50e06c
Changed transition to restart Rpu rather than modify bank to prevent lock contention
2018-09-19 10:48:05 -06:00
Carl
8c8a4ba705
debugging commit
2018-09-19 10:48:05 -06:00
Carl
b10de40506
Made LEADER_ROTATION_INTERVAL settable so that integration tests don't time out
2018-09-19 10:48:05 -06:00
Carl
2030dfa435
Implement PR comments, tidy up
2018-09-19 10:48:05 -06:00
Carl
bfe64f5f6e
Added integration test for transitioning leader to validator to see that tpu pipeline can exit and restart a tvu. Fixed Tpu and broadcast stage so that exiting later stages in the pipeline also causes earlier stages to exit.
2018-09-19 10:48:05 -06:00
Carl
6d27751365
give fullnode ownership of state needed to dynamically start up a tpu or tvu for role transition
2018-09-19 10:48:05 -06:00
Carl
1fb1c0a681
added jointypes to the stages in the tpu involved in leader rotation
2018-09-19 10:48:05 -06:00
Carl
062f654fe0
formatted code
2018-09-19 10:48:05 -06:00
Carl
d3cb161c36
Added broadcast stage test for leader rotation exit
2018-09-19 10:48:05 -06:00
Carl
98b47d2540
Added check in broadcast stage to exit after transmitting last blob before leader rotation. Also added tests
2018-09-19 10:48:05 -06:00
Carl
f28ba3937b
Added check in write stage to exit when scheduled entry_height for leader rotation is detected
2018-09-19 10:48:05 -06:00
Carl
91cf14e641
Rewrote service trait join() method to allow thread join handles to return values other than ()
2018-09-19 10:48:05 -06:00
dependabot[bot]
7601a8001c
Update reqwest requirement from 0.8.6 to 0.9.0
...
Updates the requirements on [reqwest](https://github.com/seanmonstar/reqwest ) to permit the latest version.
- [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/v0.9.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-09-19 10:47:02 -06:00
Pankaj Garg
0ee6c5bf9d
Read multiple entries in write stage ( #1259 )
...
- Also use rayon to parallelize to_blobs() to maximize CPU usage
2018-09-18 21:45:49 -07:00
Michael Vines
6dee632d67
Remove Signature from ApplySignature
2018-09-18 20:00:42 -07:00