Skip to content

Commit ac8c573

Browse files
Merge pull request #14 from yangby-cryptape/production
feat: disable destroy operation
2 parents 95b985e + ae96d0e commit ac8c573

File tree

3 files changed

+8
-7
lines changed
  • contracts/ckb-bitcoin-spv-type-lock/src
  • tests/src/contracts/ckb_bitcoin_spv_type_lock

3 files changed

+8
-7
lines changed

contracts/ckb-bitcoin-spv-type-lock/src/entry.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,11 @@ pub fn main() -> Result<()> {
5757
debug!("create all cells");
5858
operations::create_cells(&indexes_of_outputs)?;
5959
}
60-
(_, 0) => {
61-
debug!("destroy all cells");
62-
operations::destroy_cells(&indexes_of_inputs)?;
63-
}
60+
// TODO Disable destroy operations in first version.
61+
// (_, 0) => {
62+
// debug!("destroy all cells");
63+
// operations::destroy_cells(&indexes_of_inputs)?;
64+
// }
6465
(2, 2) => {
6566
debug!("update a client cell and the info cell");
6667
operations::update_client(
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
mod create;
2-
mod destroy;
2+
//mod destroy;
33
mod reorg;
44
mod update;
55

66
pub(crate) use self::create::create_cells;
7-
pub(crate) use self::destroy::destroy_cells;
7+
//pub(crate) use self::destroy::destroy_cells;
88
pub(crate) use self::reorg::reorg_clients;
99
pub(crate) use self::update::update_client;
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
mod create;
2-
mod destroy;
2+
//mod destroy;
33
mod reorg;
44
mod update;

0 commit comments

Comments
 (0)