threefoldtech / tfchain

Threefold Chain.
Apache License 2.0
15 stars 11 forks source link

Error distributing cultivation rewards #834

Closed DylanVerstraete closed 1 day ago

DylanVerstraete commented 1 year ago

Seen on qanet:

2023-07-31 09:54:12 twin balance 88206894071 contract lock amount 2021505410
2023-07-31 09:54:12 Distributing cultivation rewards for contract 32821 with amount 2021505410
2023-07-31 09:54:12 error while distributing cultivation rewards <wasm:stripped>
sameh-farouk commented 1 year ago

we need to look into this and verify if this still happens @coesensbert can we check for this in the logs

sameh-farouk commented 5 months ago

Still didn't get confirmation from Ops so will move this to next milestone Also could be related to https://github.com/threefoldtech/tfchain/issues/969

sameh-farouk commented 5 months ago

@coesensbert any update regarding this one if it is still happening?

coesensbert commented 5 months ago

I was not involved in this, at least don't remember. But can help. What logs from where do you need? Or all recent qa-net tfchain logs and look for these references?

sameh-farouk commented 5 months ago

You can grep this error from validators on QANet. error while distributing cultivation rewards and check the last time it appears and during expecting which block. One validator is enough since all validators execute the same transactions. Just pick one that runs with a debug level for logs to ensure it shows enough details.

coesensbert commented 5 months ago

val03 logs go back until 2024-02-26

grepped all the logs on cultivation qa-val-cultivation-ref.txt

no error while distributing cultivation rewards reference found

sameh-farouk commented 5 months ago

Can we check in mainNet and testNet as well please

coesensbert commented 5 months ago

Can we check in mainNet and testNet as well please

debug logs are not on there, is it required to see the cultivation logs?

sameh-farouk commented 3 months ago

Can we check in mainNet and testNet as well please

debug logs are not on there, is it required to see the cultivation logs?

No

sameh-farouk commented 3 months ago

I observed that on main net the logs are full of this errors which prevent Contracts from getting billed Here is a sample

Jul 09 08:12:06 tfchain-validator tfchain[684]: 2024-07-09 08:12:06 Distributing cultivation rewards for contract 466751 with amount 500
Jul 09 08:12:06 tfchain-validator tfchain[684]: 2024-07-09 08:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 08:12:06 tfchain-validator tfchain[684]: 2024-07-09 08:12:06 Distributing cultivation rewards for contract 466752 with amount 500
Jul 09 08:12:06 tfchain-validator tfchain[684]: 2024-07-09 08:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 08:12:06 tfchain-validator tfchain[684]: 2024-07-09 08:12:06 Distributing cultivation rewards for contract 466753 with amount 500
Jul 09 08:12:06 tfchain-validator tfchain[684]: 2024-07-09 08:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 08:12:06 tfchain-validator tfchain[684]: 2024-07-09 08:12:06 Distributing cultivation rewards for contract 466754 with amount 500
Jul 09 08:12:06 tfchain-validator tfchain[684]: 2024-07-09 08:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 08:13:00 tfchain-validator tfchain[684]: 2024-07-09 08:13:00 Distributing cultivation rewards for contract 466758 with amount 500
Jul 09 08:13:00 tfchain-validator tfchain[684]: 2024-07-09 08:13:00 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 08:13:00 tfchain-validator tfchain[684]: 2024-07-09 08:13:00 Distributing cultivation rewards for contract 466759 with amount 500
Jul 09 08:13:00 tfchain-validator tfchain[684]: 2024-07-09 08:13:00 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 08:45:24 tfchain-validator tfchain[684]: 2024-07-09 08:45:24 Distributing cultivation rewards for contract 453888 with amount 500
Jul 09 08:45:24 tfchain-validator tfchain[684]: 2024-07-09 08:45:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 09:09:42 tfchain-validator tfchain[684]: 2024-07-09 09:09:42 Distributing cultivation rewards for contract 466727 with amount 500
Jul 09 09:09:42 tfchain-validator tfchain[684]: 2024-07-09 09:09:42 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 09:09:42 tfchain-validator tfchain[684]: 2024-07-09 09:09:42 Distributing cultivation rewards for contract 466729 with amount 500
Jul 09 09:09:42 tfchain-validator tfchain[684]: 2024-07-09 09:09:42 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 09:11:30 tfchain-validator tfchain[684]: 2024-07-09 09:11:30 Distributing cultivation rewards for contract 466746 with amount 500
Jul 09 09:11:30 tfchain-validator tfchain[684]: 2024-07-09 09:11:30 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 09:11:30 tfchain-validator tfchain[684]: 2024-07-09 09:11:30 Distributing cultivation rewards for contract 466748 with amount 500
Jul 09 09:11:30 tfchain-validator tfchain[684]: 2024-07-09 09:11:30 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 09:11:30 tfchain-validator tfchain[684]: 2024-07-09 09:11:30 Distributing cultivation rewards for contract 466749 with amount 500
Jul 09 09:11:30 tfchain-validator tfchain[684]: 2024-07-09 09:11:30 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 09:11:30 tfchain-validator tfchain[684]: 2024-07-09 09:11:30 Distributing cultivation rewards for contract 466750 with amount 500
Jul 09 09:11:30 tfchain-validator tfchain[684]: 2024-07-09 09:11:30 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 09:12:24 tfchain-validator tfchain[684]: 2024-07-09 09:12:24 Distributing cultivation rewards for contract 466751 with amount 500
Jul 09 09:12:24 tfchain-validator tfchain[684]: 2024-07-09 09:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 09:12:24 tfchain-validator tfchain[684]: 2024-07-09 09:12:24 Distributing cultivation rewards for contract 466752 with amount 500
Jul 09 09:12:24 tfchain-validator tfchain[684]: 2024-07-09 09:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 09:12:24 tfchain-validator tfchain[684]: 2024-07-09 09:12:24 Distributing cultivation rewards for contract 466753 with amount 500
Jul 09 09:12:24 tfchain-validator tfchain[684]: 2024-07-09 09:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 09:12:24 tfchain-validator tfchain[684]: 2024-07-09 09:12:24 Distributing cultivation rewards for contract 466754 with amount 500
Jul 09 09:12:24 tfchain-validator tfchain[684]: 2024-07-09 09:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 09:12:24 tfchain-validator tfchain[684]: 2024-07-09 09:12:24 Distributing cultivation rewards for contract 466758 with amount 500
Jul 09 09:12:24 tfchain-validator tfchain[684]: 2024-07-09 09:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 09:12:24 tfchain-validator tfchain[684]: 2024-07-09 09:12:24 Distributing cultivation rewards for contract 466759 with amount 500
Jul 09 09:12:24 tfchain-validator tfchain[684]: 2024-07-09 09:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 09:45:42 tfchain-validator tfchain[684]: 2024-07-09 09:45:42 Distributing cultivation rewards for contract 453888 with amount 500
Jul 09 09:45:42 tfchain-validator tfchain[684]: 2024-07-09 09:45:42 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 10:10:00 tfchain-validator tfchain[684]: 2024-07-09 10:10:00 Distributing cultivation rewards for contract 466727 with amount 500
Jul 09 10:10:00 tfchain-validator tfchain[684]: 2024-07-09 10:10:00 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 10:10:00 tfchain-validator tfchain[684]: 2024-07-09 10:10:00 Distributing cultivation rewards for contract 466729 with amount 500
Jul 09 10:10:00 tfchain-validator tfchain[684]: 2024-07-09 10:10:00 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 10:11:48 tfchain-validator tfchain[684]: 2024-07-09 10:11:48 Distributing cultivation rewards for contract 466746 with amount 500
Jul 09 10:11:48 tfchain-validator tfchain[684]: 2024-07-09 10:11:48 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 10:11:48 tfchain-validator tfchain[684]: 2024-07-09 10:11:48 Distributing cultivation rewards for contract 466748 with amount 500
Jul 09 10:11:48 tfchain-validator tfchain[684]: 2024-07-09 10:11:48 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 10:11:48 tfchain-validator tfchain[684]: 2024-07-09 10:11:48 Distributing cultivation rewards for contract 466749 with amount 500
Jul 09 10:11:48 tfchain-validator tfchain[684]: 2024-07-09 10:11:48 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 10:11:48 tfchain-validator tfchain[684]: 2024-07-09 10:11:48 Distributing cultivation rewards for contract 466750 with amount 500
Jul 09 10:11:48 tfchain-validator tfchain[684]: 2024-07-09 10:11:48 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 10:11:48 tfchain-validator tfchain[684]: 2024-07-09 10:11:48 Distributing cultivation rewards for contract 466751 with amount 500
Jul 09 10:11:48 tfchain-validator tfchain[684]: 2024-07-09 10:11:48 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 10:11:48 tfchain-validator tfchain[684]: 2024-07-09 10:11:48 Distributing cultivation rewards for contract 466752 with amount 500
Jul 09 10:11:48 tfchain-validator tfchain[684]: 2024-07-09 10:11:48 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 10:11:48 tfchain-validator tfchain[684]: 2024-07-09 10:11:48 Distributing cultivation rewards for contract 466753 with amount 500
Jul 09 10:11:48 tfchain-validator tfchain[684]: 2024-07-09 10:11:48 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 10:12:42 tfchain-validator tfchain[684]: 2024-07-09 10:12:42 Distributing cultivation rewards for contract 466754 with amount 500
Jul 09 10:12:42 tfchain-validator tfchain[684]: 2024-07-09 10:12:42 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 10:12:42 tfchain-validator tfchain[684]: 2024-07-09 10:12:42 Distributing cultivation rewards for contract 466758 with amount 500
Jul 09 10:12:42 tfchain-validator tfchain[684]: 2024-07-09 10:12:42 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 10:12:42 tfchain-validator tfchain[684]: 2024-07-09 10:12:42 Distributing cultivation rewards for contract 466759 with amount 500
Jul 09 10:12:42 tfchain-validator tfchain[684]: 2024-07-09 10:12:42 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 10:46:00 tfchain-validator tfchain[684]: 2024-07-09 10:46:00 Distributing cultivation rewards for contract 453888 with amount 500
Jul 09 10:46:00 tfchain-validator tfchain[684]: 2024-07-09 10:46:00 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 11:09:24 tfchain-validator tfchain[684]: 2024-07-09 11:09:24 Distributing cultivation rewards for contract 466727 with amount 500
Jul 09 11:09:24 tfchain-validator tfchain[684]: 2024-07-09 11:09:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 11:09:24 tfchain-validator tfchain[684]: 2024-07-09 11:09:24 Distributing cultivation rewards for contract 466729 with amount 500
Jul 09 11:09:24 tfchain-validator tfchain[684]: 2024-07-09 11:09:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 11:11:12 tfchain-validator tfchain[684]: 2024-07-09 11:11:12 Distributing cultivation rewards for contract 466746 with amount 500
Jul 09 11:11:12 tfchain-validator tfchain[684]: 2024-07-09 11:11:12 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 11:12:06 tfchain-validator tfchain[684]: 2024-07-09 11:12:06 Distributing cultivation rewards for contract 466748 with amount 500
Jul 09 11:12:06 tfchain-validator tfchain[684]: 2024-07-09 11:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 11:12:06 tfchain-validator tfchain[684]: 2024-07-09 11:12:06 Distributing cultivation rewards for contract 466749 with amount 500
Jul 09 11:12:06 tfchain-validator tfchain[684]: 2024-07-09 11:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 11:12:06 tfchain-validator tfchain[684]: 2024-07-09 11:12:06 Distributing cultivation rewards for contract 466750 with amount 500
Jul 09 11:12:06 tfchain-validator tfchain[684]: 2024-07-09 11:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 11:12:06 tfchain-validator tfchain[684]: 2024-07-09 11:12:06 Distributing cultivation rewards for contract 466751 with amount 500
Jul 09 11:12:06 tfchain-validator tfchain[684]: 2024-07-09 11:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 11:12:06 tfchain-validator tfchain[684]: 2024-07-09 11:12:06 Distributing cultivation rewards for contract 466752 with amount 500
Jul 09 11:12:06 tfchain-validator tfchain[684]: 2024-07-09 11:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 11:12:06 tfchain-validator tfchain[684]: 2024-07-09 11:12:06 Distributing cultivation rewards for contract 466753 with amount 500
Jul 09 11:12:06 tfchain-validator tfchain[684]: 2024-07-09 11:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 11:12:06 tfchain-validator tfchain[684]: 2024-07-09 11:12:06 Distributing cultivation rewards for contract 466754 with amount 500
Jul 09 11:12:06 tfchain-validator tfchain[684]: 2024-07-09 11:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 11:13:00 tfchain-validator tfchain[684]: 2024-07-09 11:13:00 Distributing cultivation rewards for contract 466758 with amount 500
Jul 09 11:13:00 tfchain-validator tfchain[684]: 2024-07-09 11:13:00 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 11:13:00 tfchain-validator tfchain[684]: 2024-07-09 11:13:00 Distributing cultivation rewards for contract 466759 with amount 500
Jul 09 11:13:00 tfchain-validator tfchain[684]: 2024-07-09 11:13:00 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 11:45:24 tfchain-validator tfchain[684]: 2024-07-09 11:45:24 Distributing cultivation rewards for contract 453888 with amount 500
Jul 09 11:45:24 tfchain-validator tfchain[684]: 2024-07-09 11:45:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 12:09:42 tfchain-validator tfchain[684]: 2024-07-09 12:09:42 Distributing cultivation rewards for contract 466727 with amount 500
Jul 09 12:09:42 tfchain-validator tfchain[684]: 2024-07-09 12:09:42 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 12:09:42 tfchain-validator tfchain[684]: 2024-07-09 12:09:42 Distributing cultivation rewards for contract 466729 with amount 500
Jul 09 12:09:42 tfchain-validator tfchain[684]: 2024-07-09 12:09:42 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 12:11:30 tfchain-validator tfchain[684]: 2024-07-09 12:11:30 Distributing cultivation rewards for contract 466746 with amount 500
Jul 09 12:11:30 tfchain-validator tfchain[684]: 2024-07-09 12:11:30 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 12:11:30 tfchain-validator tfchain[684]: 2024-07-09 12:11:30 Distributing cultivation rewards for contract 466748 with amount 500
Jul 09 12:11:30 tfchain-validator tfchain[684]: 2024-07-09 12:11:30 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 12:11:30 tfchain-validator tfchain[684]: 2024-07-09 12:11:30 Distributing cultivation rewards for contract 466749 with amount 500
Jul 09 12:11:30 tfchain-validator tfchain[684]: 2024-07-09 12:11:30 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 12:11:30 tfchain-validator tfchain[684]: 2024-07-09 12:11:30 Distributing cultivation rewards for contract 466750 with amount 500
Jul 09 12:11:30 tfchain-validator tfchain[684]: 2024-07-09 12:11:30 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 12:12:24 tfchain-validator tfchain[684]: 2024-07-09 12:12:24 Distributing cultivation rewards for contract 466751 with amount 500
Jul 09 12:12:24 tfchain-validator tfchain[684]: 2024-07-09 12:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 12:12:24 tfchain-validator tfchain[684]: 2024-07-09 12:12:24 Distributing cultivation rewards for contract 466752 with amount 500
Jul 09 12:12:24 tfchain-validator tfchain[684]: 2024-07-09 12:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 12:12:24 tfchain-validator tfchain[684]: 2024-07-09 12:12:24 Distributing cultivation rewards for contract 466753 with amount 500
Jul 09 12:12:24 tfchain-validator tfchain[684]: 2024-07-09 12:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 12:12:24 tfchain-validator tfchain[684]: 2024-07-09 12:12:24 Distributing cultivation rewards for contract 466754 with amount 500
Jul 09 12:12:24 tfchain-validator tfchain[684]: 2024-07-09 12:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 12:12:24 tfchain-validator tfchain[684]: 2024-07-09 12:12:24 Distributing cultivation rewards for contract 466758 with amount 500
Jul 09 12:12:24 tfchain-validator tfchain[684]: 2024-07-09 12:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 12:12:24 tfchain-validator tfchain[684]: 2024-07-09 12:12:24 Distributing cultivation rewards for contract 466759 with amount 500
Jul 09 12:12:24 tfchain-validator tfchain[684]: 2024-07-09 12:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 12:45:42 tfchain-validator tfchain[684]: 2024-07-09 12:45:42 Distributing cultivation rewards for contract 453888 with amount 500
Jul 09 12:45:42 tfchain-validator tfchain[684]: 2024-07-09 12:45:42 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 13:10:00 tfchain-validator tfchain[684]: 2024-07-09 13:10:00 Distributing cultivation rewards for contract 466727 with amount 500
Jul 09 13:10:00 tfchain-validator tfchain[684]: 2024-07-09 13:10:00 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 13:10:00 tfchain-validator tfchain[684]: 2024-07-09 13:10:00 Distributing cultivation rewards for contract 466729 with amount 500
Jul 09 13:10:00 tfchain-validator tfchain[684]: 2024-07-09 13:10:00 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 13:11:48 tfchain-validator tfchain[684]: 2024-07-09 13:11:48 Distributing cultivation rewards for contract 466746 with amount 500
Jul 09 13:11:48 tfchain-validator tfchain[684]: 2024-07-09 13:11:48 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 13:11:48 tfchain-validator tfchain[684]: 2024-07-09 13:11:48 Distributing cultivation rewards for contract 466748 with amount 500
Jul 09 13:11:48 tfchain-validator tfchain[684]: 2024-07-09 13:11:48 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 13:11:48 tfchain-validator tfchain[684]: 2024-07-09 13:11:48 Distributing cultivation rewards for contract 466749 with amount 500
Jul 09 13:11:48 tfchain-validator tfchain[684]: 2024-07-09 13:11:48 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 13:11:48 tfchain-validator tfchain[684]: 2024-07-09 13:11:48 Distributing cultivation rewards for contract 466750 with amount 500
Jul 09 13:11:48 tfchain-validator tfchain[684]: 2024-07-09 13:11:48 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 13:11:48 tfchain-validator tfchain[684]: 2024-07-09 13:11:48 Distributing cultivation rewards for contract 466751 with amount 500
Jul 09 13:11:48 tfchain-validator tfchain[684]: 2024-07-09 13:11:48 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 13:11:48 tfchain-validator tfchain[684]: 2024-07-09 13:11:48 Distributing cultivation rewards for contract 466752 with amount 500
Jul 09 13:11:48 tfchain-validator tfchain[684]: 2024-07-09 13:11:48 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 13:11:48 tfchain-validator tfchain[684]: 2024-07-09 13:11:48 Distributing cultivation rewards for contract 466753 with amount 500
Jul 09 13:11:48 tfchain-validator tfchain[684]: 2024-07-09 13:11:48 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 13:12:42 tfchain-validator tfchain[684]: 2024-07-09 13:12:42 Distributing cultivation rewards for contract 466754 with amount 500
Jul 09 13:12:42 tfchain-validator tfchain[684]: 2024-07-09 13:12:42 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 13:12:42 tfchain-validator tfchain[684]: 2024-07-09 13:12:42 Distributing cultivation rewards for contract 466758 with amount 500
Jul 09 13:12:42 tfchain-validator tfchain[684]: 2024-07-09 13:12:42 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 13:12:42 tfchain-validator tfchain[684]: 2024-07-09 13:12:42 Distributing cultivation rewards for contract 466759 with amount 500
Jul 09 13:12:42 tfchain-validator tfchain[684]: 2024-07-09 13:12:42 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 13:46:00 tfchain-validator tfchain[684]: 2024-07-09 13:46:00 Distributing cultivation rewards for contract 453888 with amount 500
Jul 09 13:46:00 tfchain-validator tfchain[684]: 2024-07-09 13:46:00 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 14:09:24 tfchain-validator tfchain[684]: 2024-07-09 14:09:24 Distributing cultivation rewards for contract 466727 with amount 500
Jul 09 14:09:24 tfchain-validator tfchain[684]: 2024-07-09 14:09:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 14:09:24 tfchain-validator tfchain[684]: 2024-07-09 14:09:24 Distributing cultivation rewards for contract 466729 with amount 500
Jul 09 14:09:24 tfchain-validator tfchain[684]: 2024-07-09 14:09:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 14:11:12 tfchain-validator tfchain[684]: 2024-07-09 14:11:12 Distributing cultivation rewards for contract 466746 with amount 500
Jul 09 14:11:12 tfchain-validator tfchain[684]: 2024-07-09 14:11:12 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 14:12:06 tfchain-validator tfchain[684]: 2024-07-09 14:12:06 Distributing cultivation rewards for contract 466748 with amount 500
Jul 09 14:12:06 tfchain-validator tfchain[684]: 2024-07-09 14:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 14:12:06 tfchain-validator tfchain[684]: 2024-07-09 14:12:06 Distributing cultivation rewards for contract 466749 with amount 500
Jul 09 14:12:06 tfchain-validator tfchain[684]: 2024-07-09 14:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 14:12:06 tfchain-validator tfchain[684]: 2024-07-09 14:12:06 Distributing cultivation rewards for contract 466750 with amount 500
Jul 09 14:12:06 tfchain-validator tfchain[684]: 2024-07-09 14:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 14:12:06 tfchain-validator tfchain[684]: 2024-07-09 14:12:06 Distributing cultivation rewards for contract 466751 with amount 500
Jul 09 14:12:06 tfchain-validator tfchain[684]: 2024-07-09 14:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 14:12:06 tfchain-validator tfchain[684]: 2024-07-09 14:12:06 Distributing cultivation rewards for contract 466752 with amount 500
Jul 09 14:12:06 tfchain-validator tfchain[684]: 2024-07-09 14:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 14:12:06 tfchain-validator tfchain[684]: 2024-07-09 14:12:06 Distributing cultivation rewards for contract 466753 with amount 500
Jul 09 14:12:06 tfchain-validator tfchain[684]: 2024-07-09 14:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 14:12:06 tfchain-validator tfchain[684]: 2024-07-09 14:12:06 Distributing cultivation rewards for contract 466754 with amount 500
Jul 09 14:12:06 tfchain-validator tfchain[684]: 2024-07-09 14:12:06 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 14:13:00 tfchain-validator tfchain[684]: 2024-07-09 14:13:00 Distributing cultivation rewards for contract 466758 with amount 500
Jul 09 14:13:00 tfchain-validator tfchain[684]: 2024-07-09 14:13:00 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 14:13:00 tfchain-validator tfchain[684]: 2024-07-09 14:13:00 Distributing cultivation rewards for contract 466759 with amount 500
Jul 09 14:13:00 tfchain-validator tfchain[684]: 2024-07-09 14:13:00 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 14:45:24 tfchain-validator tfchain[684]: 2024-07-09 14:45:24 Distributing cultivation rewards for contract 453888 with amount 500
Jul 09 14:45:24 tfchain-validator tfchain[684]: 2024-07-09 14:45:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 15:09:42 tfchain-validator tfchain[684]: 2024-07-09 15:09:42 Distributing cultivation rewards for contract 466727 with amount 500
Jul 09 15:09:42 tfchain-validator tfchain[684]: 2024-07-09 15:09:42 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 15:09:42 tfchain-validator tfchain[684]: 2024-07-09 15:09:42 Distributing cultivation rewards for contract 466729 with amount 500
Jul 09 15:09:42 tfchain-validator tfchain[684]: 2024-07-09 15:09:42 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 15:11:30 tfchain-validator tfchain[684]: 2024-07-09 15:11:30 Distributing cultivation rewards for contract 466746 with amount 500
Jul 09 15:11:30 tfchain-validator tfchain[684]: 2024-07-09 15:11:30 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 15:11:30 tfchain-validator tfchain[684]: 2024-07-09 15:11:30 Distributing cultivation rewards for contract 466748 with amount 500
Jul 09 15:11:30 tfchain-validator tfchain[684]: 2024-07-09 15:11:30 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 15:11:30 tfchain-validator tfchain[684]: 2024-07-09 15:11:30 Distributing cultivation rewards for contract 466749 with amount 500
Jul 09 15:11:30 tfchain-validator tfchain[684]: 2024-07-09 15:11:30 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 15:11:30 tfchain-validator tfchain[684]: 2024-07-09 15:11:30 Distributing cultivation rewards for contract 466750 with amount 500
Jul 09 15:11:30 tfchain-validator tfchain[684]: 2024-07-09 15:11:30 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 15:12:24 tfchain-validator tfchain[684]: 2024-07-09 15:12:24 Distributing cultivation rewards for contract 466751 with amount 500
Jul 09 15:12:24 tfchain-validator tfchain[684]: 2024-07-09 15:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 15:12:24 tfchain-validator tfchain[684]: 2024-07-09 15:12:24 Distributing cultivation rewards for contract 466752 with amount 500
Jul 09 15:12:24 tfchain-validator tfchain[684]: 2024-07-09 15:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 15:12:24 tfchain-validator tfchain[684]: 2024-07-09 15:12:24 Distributing cultivation rewards for contract 466753 with amount 500
Jul 09 15:12:24 tfchain-validator tfchain[684]: 2024-07-09 15:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 15:12:24 tfchain-validator tfchain[684]: 2024-07-09 15:12:24 Distributing cultivation rewards for contract 466754 with amount 500
Jul 09 15:12:24 tfchain-validator tfchain[684]: 2024-07-09 15:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 15:12:24 tfchain-validator tfchain[684]: 2024-07-09 15:12:24 Distributing cultivation rewards for contract 466758 with amount 500
Jul 09 15:12:24 tfchain-validator tfchain[684]: 2024-07-09 15:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 15:12:24 tfchain-validator tfchain[684]: 2024-07-09 15:12:24 Distributing cultivation rewards for contract 466759 with amount 500
Jul 09 15:12:24 tfchain-validator tfchain[684]: 2024-07-09 15:12:24 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 15:45:42 tfchain-validator tfchain[684]: 2024-07-09 15:45:42 Distributing cultivation rewards for contract 453888 with amount 500
Jul 09 15:45:42 tfchain-validator tfchain[684]: 2024-07-09 15:45:42 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 16:10:00 tfchain-validator tfchain[684]: 2024-07-09 16:10:00 Distributing cultivation rewards for contract 466727 with amount 500
Jul 09 16:10:00 tfchain-validator tfchain[684]: 2024-07-09 16:10:00 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 16:10:00 tfchain-validator tfchain[684]: 2024-07-09 16:10:00 Distributing cultivation rewards for contract 466729 with amount 500
Jul 09 16:10:00 tfchain-validator tfchain[684]: 2024-07-09 16:10:00 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 16:11:48 tfchain-validator tfchain[684]: 2024-07-09 16:11:48 Distributing cultivation rewards for contract 466746 with amount 500
Jul 09 16:11:48 tfchain-validator tfchain[684]: 2024-07-09 16:11:48 error while distributing cultivation rewards <wasm:stripped>
--
Jul 09 16:11:48 tfchain-validator tfchain[684]: 2024-07-09 16:11:48 Distributing cultivation rewards for contract 466748 with amount 500
Jul 09 16:11:48 tfchain-validator tfchain[684]: 2024-07-09 16:11:48 error while distributing cultivation rewards <wasm:stripped>
DylanVerstraete commented 3 months ago

to me it looks like it's trying to transfer out the minimal balance from an account and getting an error for that somehow. Also on another note, the locked balance calulcation currently implemented on tfchain is wrong. You should actually loop over the balance locks in storage to see how much is actually locked, see

        pub fn get_locked_balance(account_id: &T::AccountId) -> BalanceOf<T> {
            let balance_locks = pallet_balances::pallet::Pallet::<T>::locks(account_id);

            let mut locked_balance = BalanceOf::<T>::zero();
            // loop over balance accumulate locked balance
            for lock in balance_locks {
                    locked_balance +=
                        BalanceOf::<T>::saturated_from(lock.amount.saturated_into::<u128>());
            }

            locked_balance
        }
sameh-farouk commented 3 months ago

Thank you Dylan for your feedback. Yes I noted that before and opened an issue here https://github.com/threefoldtech/tfchain/issues/969 regarding the misuse of the balance lock

sameh-farouk commented 2 months ago

Update: The amount tracked in the contract lock during the grace period is incorrectly divergent from the lock on the user balance leading to illiquidity issues when it's time to distribute rewards. This should be fixed in this PR