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