massa icon indicating copy to clipboard operation
massa copied to clipboard

Test/block serializer args 1

Open sydhds opened this issue 2 years ago • 3 comments

  • [ ] document all added functions
  • [ ] try in sandbox /simulation/labnet
  • [ ] unit tests on the added/changed features
    • [ ] make tests compile
    • [ ] make tests pass
  • [ ] add logs allowing easy debugging in case the changes caused problems
  • [ ] if the API has changed, update the API specification

sydhds avatar Jan 23 '23 16:01 sydhds

But is it really necessary for functions that only use a few arguments? I'm thinking about BlockDeserializerArgs, this would be nice but only for anything above the clippy limit imho.

Eitu33 avatar Jan 24 '23 09:01 Eitu33

But is it really necessary for functions that only use a few arguments? I'm thinking about BlockDeserializerArgs, this would be nice but only for anything above the clippy limit imho.

Indeed for struct with fee arguments, it's not very necessary but if we adopt this PR it would be nice to stay consistent in the code no?

sydhds avatar Jan 24 '23 11:01 sydhds

I think what we should do is simply adopt the clippy rule, since the vast majority of functions have few arguments it would add a lot of code, take time, and not bring much to the table. That said for those who are above the limit it's great.

Eitu33 avatar Jan 24 '23 11:01 Eitu33

  • [ ] document all added functions

  • [ ] try in sandbox /simulation/labnet

  • [ ] unit tests on the added/changed features

    • [ ] make tests compile
    • [ ] make tests pass
  • [ ] add logs allowing easy debugging in case the changes caused problems

  • [ ] if the API has changed, update the API specification

Can you make all the checks here ? so that we are sure it doesn't break anything as we are close to the release date of the testnet we should be even more careful to try not include any new bug

AurelienFT avatar Jan 31 '23 09:01 AurelienFT

Approving the code, did not test

Eitu33 avatar Jan 31 '23 09:01 Eitu33

Postpone it to testnet_20 as it has been tested.

AurelienFT avatar Feb 01 '23 14:02 AurelienFT

Tested in sandbox mode and all good! @AurelienFT can you approve it?

sydhds avatar Feb 06 '23 08:02 sydhds