Commit Graph

2021 Commits

Author SHA1 Message Date
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
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
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
53f09c44f3 Rename tokens to lamports in sdk/ 2019-03-05 17:28:06 -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
52fc974cdf The funder is not a staker 2019-03-05 12:46:18 -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
dc42c12f2b Revert to more consistent naming (#3114) 2019-03-04 17:50:19 -08: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
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
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
44322124c8 Update paths 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
3f4ff3f7b5 Delete duplicate file 2019-03-02 18:57:11 -07:00
9c3e7e40cf Less pub 2019-03-02 17:36:51 -08:00
1edf6c361e Move Vote program out of the SDK 2019-03-02 16:44:36 -08:00
e6486b2824 Move Budget out of the SDK 2019-03-02 16:44:36 -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
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
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
176d5e0d37 Rename Transaction last_id field to recent_block_hash 2019-03-02 12:13:30 -07: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
fcbcf000c4 Use a valid last_id 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