How Taiyi ‘solves’ the fair exchange problem
preconfTx
).preconfTx
) with the preconfirmer no later than 6 seconds into the specified block.gasLimit
, the preconfirmer can call the exhaust()
function.exhaust()
function:
a. Burns an amount of gas equal to the specified gasLimit
b. Transfers the prePayment
from the user to the preconfirmer
c. Relieves the preconfirmer of the commitment dutySample Implementation of gasBurner Function
exhaust()
.prePayment
and afterPayment
.exhaust()
function and promote commitment fulfillment.