budget as separate contract and system call contract (#1189)

* budget and system contracts and verification

* contract check_id methods
* system call contract
* verify contract execution rules
* move system into its own file
* allocate before transfer for budget
* store error in budget context
* budget contract and tests without bank
* moved budget of of bank
This commit is contained in:
anatoly yakovenko
2018-09-17 13:36:31 -07:00
committed by GitHub
parent 072b244575
commit 6ec0e42220
15 changed files with 951 additions and 450 deletions

View File

@@ -16,8 +16,10 @@ pub mod broadcast_stage;
pub mod budget;
pub mod choose_gossip_peer_strategy;
pub mod client;
pub mod instruction;
#[macro_use]
pub mod crdt;
pub mod budget_contract;
pub mod drone;
pub mod entry;
pub mod entry_writer;
@@ -50,6 +52,7 @@ pub mod signature;
pub mod sigverify;
pub mod sigverify_stage;
pub mod streamer;
pub mod system_contract;
pub mod thin_client;
pub mod timing;
pub mod tpu;