Remove batch splitting system (#475)
* First pass at removing batch splitting * Refactor to separate module loading from request parsing * Consolidate module functionality * Tidy up comments * Use array of modules instead of HashMap * Formatting * Use module hashes when importing modules
This commit is contained in:
parent
5dab8195b4
commit
acab26e5c1
17 changed files with 1425 additions and 1938 deletions
|
|
@ -16,7 +16,7 @@ use pod2::{
|
|||
primitives::ec::schnorr::SecretKey, signer::Signer,
|
||||
},
|
||||
frontend::{MainPodBuilder, Operation, SignedDictBuilder},
|
||||
lang::parse,
|
||||
lang::load_module,
|
||||
middleware::{MainPodProver, Params, VDSet},
|
||||
};
|
||||
|
||||
|
|
@ -88,10 +88,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
game_pk = game_pk,
|
||||
);
|
||||
println!("# custom predicate batch:{}", input);
|
||||
let batch = parse(&input, ¶ms, &[])?
|
||||
.first_batch()
|
||||
.expect("Expected batch")
|
||||
.clone();
|
||||
let module = load_module(&input, "points_module", ¶ms, vec![])?;
|
||||
let batch = module.batch.clone();
|
||||
let points_pred = batch.predicate_ref_by_name("points").unwrap();
|
||||
let over_9000_pred = batch.predicate_ref_by_name("over_9000").unwrap();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue