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:
committed by
GitHub
parent
072b244575
commit
6ec0e42220
@ -23,7 +23,7 @@ pub type BlobRecycler = Recycler<Blob>;
|
||||
pub const NUM_PACKETS: usize = 1024 * 8;
|
||||
pub const BLOB_SIZE: usize = (64 * 1024 - 128); // wikipedia says there should be 20b for ipv4 headers
|
||||
pub const BLOB_DATA_SIZE: usize = BLOB_SIZE - (BLOB_HEADER_SIZE * 2);
|
||||
pub const PACKET_DATA_SIZE: usize = 256;
|
||||
pub const PACKET_DATA_SIZE: usize = 512;
|
||||
pub const NUM_BLOBS: usize = (NUM_PACKETS * PACKET_DATA_SIZE) / BLOB_SIZE;
|
||||
|
||||
#[derive(Clone, Default, Debug, PartialEq)]
|
||||
|
Reference in New Issue
Block a user