From cecaee3aa82c6f7d5bf4bedfb6abe7e345ab9967 Mon Sep 17 00:00:00 2001 From: Aaro Altonen Date: Mon, 29 Nov 2021 10:35:04 +0200 Subject: [PATCH] utxo: Disable programmable pools --- pallets/utxo/src/lib.rs | 50 ++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/pallets/utxo/src/lib.rs b/pallets/utxo/src/lib.rs index c6e3325..f011638 100644 --- a/pallets/utxo/src/lib.rs +++ b/pallets/utxo/src/lib.rs @@ -565,36 +565,36 @@ pub mod pallet { } pub fn create( - caller: &T::AccountId, - code: &Vec, - utxo_hash: H256, - utxo_value: u128, - data: &Vec, + _caller: &T::AccountId, + _code: &Vec, + _utxo_hash: H256, + _utxo_value: u128, + _data: &Vec, ) -> Result<(), &'static str> { - let weight: Weight = 6000000000; - - T::ProgrammablePool::create(caller, weight, code, utxo_hash, utxo_value, data) + // let weight: Weight = 6000000000; + // T::ProgrammablePool::create(caller, weight, code, utxo_hash, utxo_value, data) + Ok(()) } pub fn call( - caller: &T::AccountId, - dest: &T::AccountId, - utxo_hash: H256, - utxo_value: u128, - fund_contract: bool, - data: &Vec, + _caller: &T::AccountId, + _dest: &T::AccountId, + _utxo_hash: H256, + _utxo_value: u128, + _fund_contract: bool, + _data: &Vec, ) -> Result<(), &'static str> { - let weight: Weight = 6000000000; - - T::ProgrammablePool::call( - caller, - dest, - weight, - utxo_hash, - utxo_value, - fund_contract, - data, - ) + // let weight: Weight = 6000000000; + // T::ProgrammablePool::call( + // caller, + // dest, + // weight, + // utxo_hash, + // utxo_value, + // fund_contract, + // data, + // ) + Ok(()) } pub fn validate_transaction(