Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Who should publish the contract on chain? #63

Answered by bonomat
da-kami asked this question in Q&A
Discussion options

You must be logged in to vote

My opinion:

  • both should publish

It should be a recognizable error message if the tx_lock is either in the mempool or if ti was already included in a block. We should be able to detect that and prevent stalling.

Why?

  • the taker took the offer and wants to execute the contract. If he cannot publish the tx, he has to trust that the maker follows through with it and does not bail out
  • the maker came up with the contract and has some sort of business case, he probably also has multiple takers and needs to manage utxos, hence, he has an incentive to publish this tx asap. He also does not want to give the taker the chance to bail out.

// edit//
I interpreted your question as who should publish…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@da-kami
Comment options

Comment options

You must be logged in to vote
5 replies
@DeliciousHair
Comment options

@da-kami
Comment options

@bonomat
Comment options

@da-kami
Comment options

@Rijaspb
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by da-kami
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
archived Marks discussions that are considered archived.
4 participants