Y es, we can abuse the arbitrary data for it but we can also make a special kind of transaction
I t would be easier to distinguish and if more business rules need to be added later, it will become messy if the current transactions are used for this
Glen, [16 Oct 2018 at 07:02:03]:
I think he will need the farmer ID, the different capacity units (CPU, Memory, HDD, SSD) and perhaps also GPU and Bandwidth range?
Further KDS requires that 10% goes to the Foundation, and top of that, if the farmer is part of a cooperative, a certain percentage goes to that cooperative as well. Meaning the first 10% we can just hardcode as a rule of that transaction, not difficult. But the cooperative one would depend if it is part of a cooperative, so somehow, when a farmer registers capacity, it might also need to mention this cooperative or get it involved somehow, so their rules can be applied as well.
Rob Van Mieghem, [16 Oct 2018 at 07:02:54]:
yep, I think we all agree a special transaction is a lot better
Y es, we can abuse the arbitrary data for it but we can also make a special kind of transaction I t would be easier to distinguish and if more business rules need to be added later, it will become messy if the current transactions are used for this
Glen, [16 Oct 2018 at 07:02:03]: I think he will need the farmer ID, the different capacity units (CPU, Memory, HDD, SSD) and perhaps also GPU and Bandwidth range?
Further KDS requires that 10% goes to the Foundation, and top of that, if the farmer is part of a cooperative, a certain percentage goes to that cooperative as well. Meaning the first 10% we can just hardcode as a rule of that transaction, not difficult. But the cooperative one would depend if it is part of a cooperative, so somehow, when a farmer registers capacity, it might also need to mention this cooperative or get it involved somehow, so their rules can be applied as well.
Rob Van Mieghem, [16 Oct 2018 at 07:02:54]: yep, I think we all agree a special transaction is a lot better