<div dir="ltr"><div dir="ltr">Hi ZmnSCPxj, <br><br>1. If all miners are rational and non-myopic, they will support the attack. They don't need to cooperate, it's not the end of Bitcoin, but they all have to know everyone is rational and non-myopic. If you want to be secure in a situation like this then mad-htlc helps. Otherwise you can stick with htlc. To be clear, assuming it away means assuming at least some miners are altruistic or suboptimal. <br><br>2. I believe what Itay meant when he said myopic is included in non-myopic is that non-myopic will never choose a worse strategy than myopic. They both have the same utility function, but the non-myopic has more freedom. Specifically, if there are enough miners that are either irrational or myopic, and the bribe is small, then the best non-myopic strategy and the best myopic strategy is to not accept the bribe. (I think we're all in agreement on this one, it's just about terminology) <br><br>Best, <br>Ittay <br><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 3, 2020 at 3:38 PM ZmnSCPxj via bitcoin-dev <<a href="mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfoundation.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Good morning Ittay,<br>
<br>
> Hi all,<br>
><br>
> Itay from MAD-HTLC here. I feel like some details got lost along the way so please let me get these sorted out.<br>
><br>
> 1. Myopic and non-myopic miners:<br>
> When we use the term myopic we mean a miner that optimizes transaction selection for the next block with respect only to the next block. The term non-myopic refers to a miner that optimizes transaction selection for the next block with respect to several future blocks. To accommodate for the stochastic nature of block creation these optimizations are of the expected revenue. However, neither of these mean that these miners choose to act in a way that reduces their expected revenue -- specifically, if from a non-myopic's miner perspective including Alice's immediate transaction is better off than waiting for Bob's future transaction, then this is what they do.<br>
><br>
> Consequently, saying that "being myopic" dominates "being non-myopic" is incorrect -- myopic is included in being non-myopic, thus cannot be better than it.<br>
<br>
The term "dominates" here is a technical term in game theory.<br>
<br>
A strategy dominates over another strategy if, in a mixed environment, the first strategy always wins more points than the second strategy, no matter what proportion they may initially start in the mixed environment.<br>
<br>
For example, in an environment of prisoner dilemma games, a tit-for-tat strategy dominates over the always-betray strategy, which dominates over always-cooperate strategy.<br>
<br>
The above is the use of the term "dominate", and not that somehow one strategy "contains" the other.<br>
Always-betray does not contain always-cooperate.<br>
<br>
It is immaterial that the non-myopic "contains" myopic strategy as a sub-strategy.<br>
Sometimes, overriding a sub-strategy can lead to worse outcomes and you are better off sticking to the sub-strategy rather than an extended strategy that sometimes overrides the sub-strategy<br>
<br>
(notice how mixed teams of computer+human are no longer dominant in chess, because computer chess AIs are now so sophisticated that on average, the human overriding the computer strategy often leads to worse outcomes than just following the computer; yet about a decade ago such mixed computer+human teams were dominant over pure-computer and pure-human teams; yet you could say the same, that the computer+human "includes" the pure-computer strategy, but nowadays does ***not*** dominate it).<br>
<br>
Or: worse is better.<br>
<br>
<br>
What matters is, if you make them compete in an environment, myopic strategies will consistently beat non-myopic strategies because the myopic miners will impose costs on the non-myopic miners.<br>
<br>
<br>
><br>
> So, the next issue to address is estimation of how much of the hash rate is actually non-myopic. Currently that answer is simple -- probably 0. Bitcoin Core (97% of the blocks) doesn't offer these optimizations, and most likely other clients do not have these as well. But, we showed this is rather trivial to implement (150 LoC in Bitcoin Core), and theoretically can be included in Core's next version AFAIK. Moreover, any miner can simply apply our patch independently, achieving the same effect.<br>
><br>
> Please note more elaborate optimizations are in miners' best interest, especially as mining incentives transition from block minting to fees -- the latter are becoming the main income source, and I believe less sophisticated miners will miss out substantially. You can check out Phil Daian's paper about front-running in Ethereum for example: <a href="https://arxiv.org/abs/1904.05234" rel="noreferrer" target="_blank">https://arxiv.org/abs/1904.05234</a><br>
<br>
Yes, but again: myopic strategies dominate over non-myopic strategies, thus implementing non-myopic strategies is pointless, since they will lose revenue in an environment where even a single miner is myopic.<br>
<br>
It is immaterial that it takes only 150 LoC to implement non-myopia: if it earns less money in an environment where even a minority of blocks are created by myopic miners (much less 97%), nobody will use the non-myopic strategy and they will remain at negligible near-0% hashrate.<br>
<br>
As they say, "you can't get to there from here".<br>
<br>
<br>
> As common in game-theory papers, our analysis does assume Common Knowledge -- all participants know all other participants, their available strategies and utilities (Tejaswi et al.'s paper makes the same assumption). As commented before, true, this is not always the case -- nodes might have different mempools, and some might not have applied the optimization patch and act myopically. Such miners are therefore "resisting" the attack -- as stated, by including Alice's transaction they ruin other miners' potential profit from Bob's high fee transaction.<br>
<br>
The only additional assumption you are missing is that miners care about *themselves* and not about *all miners*.<br>
<br>
Non-myopia may earn more money for *all* miners if *all* miners use it, but if a *single* miner starts using myopic strategies in a non-myopic environment, they will earn more funds than their non-myopic competitors and thus dominate, shifting the percentages until almost all miners are using myopic strategies.<br>
That they require less processing ("keep it simple, sir") is just gravy on top.<br>
<br>
<br>
The only way for non-myopic miners to win is to form a cartel, and a miner cartel with >50% hashpower would be the end of Bitcoin anyway.<br>
<br>
<br>
Regards,<br>
ZmnSCPxj<br>
_______________________________________________<br>
bitcoin-dev mailing list<br>
<a href="mailto:bitcoin-dev@lists.linuxfoundation.org" target="_blank">bitcoin-dev@lists.linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev</a><br>
</blockquote></div></div>