SC: Worker should not be executed while replicating a transaction from self repair #852
Labels
bug
Something isn't working
self repair
Involve SelfRepair mechanism
smart contracts
Involve smart contracts
Describe the problem you discovered
During the replication of a transaction, if the transaction has a recipient, the storage node triggers the execution of the corresponding smart contract.
This works as expected while replicating a new transaction, but the execution should not be triggered if the replication comes from the self repair as it is a past transaction and the execution has already been done by other nodes.
Describe the solution you'd like
In the Replication module, we should pass the parameter
self_repair?
to theContracts.load_transaction
and do not execute smart contract if it comes from self repair.The text was updated successfully, but these errors were encountered: