Skip to content

Commit 8024e97

Browse files
committed
comment expiration tag, remove done todo
chore: * remove makefile
1 parent 9d078bd commit 8024e97

File tree

3 files changed

+3
-32
lines changed

3 files changed

+3
-32
lines changed

Makefile

Lines changed: 0 additions & 27 deletions
This file was deleted.

crates/dex-cli/src/common/utils.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
// TODO(Illia): refactor this.
2-
31
use elements::hex::ToHex;
42
use elements::secp256k1_zkp::PublicKey;
53
use hex::FromHex;
64
use simplicity::bitcoin::secp256k1;
75
use simplicity::bitcoin::secp256k1::SecretKey;
86
use simplicityhl::elements::AssetId;
97
use simplicityhl_core::broadcast_tx;
10-
use std::{io::Write};
8+
use std::io::Write;
119

1210
pub const DEFAULT_CLIENT_TIMEOUT_SECS: u64 = 10;
1311

crates/dex-nostr-relay/src/handlers/place_order.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::relay_client::RelayClient;
22
use crate::relay_processor::OrderPlaceEventTags;
33
use crate::types::{
44
BLOCKSTREAM_MAKER_CONTENT, CustomKind, MAKER_COLLATERAL_ASSET_ID_TAG, MAKER_DCD_ARG_TAG, MAKER_DCD_TAPROOT_TAG,
5-
MAKER_EXPIRATION_TIME, MAKER_FILLER_ASSET_ID_TAG, MAKER_FUND_TX_ID_TAG, MAKER_GRANTOR_COLLATERAL_ASSET_ID_TAG,
5+
MAKER_FILLER_ASSET_ID_TAG, MAKER_FUND_TX_ID_TAG, MAKER_GRANTOR_COLLATERAL_ASSET_ID_TAG,
66
MAKER_GRANTOR_SETTLEMENT_ASSET_ID_TAG, MAKER_SETTLEMENT_ASSET_ID_TAG, MakerOrderKind,
77
};
88
use nostr::util::hex;
@@ -24,7 +24,7 @@ pub async fn handle(client: &RelayClient, tags: OrderPlaceEventTags, tx_id: Txid
2424
let maker_order = EventBuilder::new(MakerOrderKind::get_kind(), BLOCKSTREAM_MAKER_CONTENT)
2525
.tags([
2626
Tag::public_key(client_pubkey),
27-
Tag::expiration(Timestamp::from(timestamp_now.as_u64() + MAKER_EXPIRATION_TIME)),
27+
// Tag::expiration(Timestamp::from(timestamp_now.as_u64() + MAKER_EXPIRATION_TIME)),
2828
Tag::custom(TagKind::Custom(Cow::from(MAKER_DCD_ARG_TAG)), [dcd_arguments]),
2929
Tag::custom(
3030
TagKind::Custom(Cow::from(MAKER_DCD_TAPROOT_TAG)),

0 commit comments

Comments
 (0)