mirror of
https://github.com/nspcc-dev/dbft.git
synced 2026-03-01 04:28:38 +00:00
Consider not importing default payload implementations for production applications #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @roman-khimov on GitHub (Feb 9, 2024).
Is your feature request related to a problem? Please describe.
I'm always frustrated when we import/build code we don't need. We have payloads/block implementations that are imported by default, but no real application uses them. They're useful for tests, they can be provided for edge cases, but they're not needed to be present in production builds.
Describe the solution you'd like
Drop defaults for
New*payload callbacks. They still can be used viapayload.*methods, we can even add some method to provide the default set of options for all of them, but we can avoid importing them in NeoGo or Bane.Describe alternatives you've considered
Keep this code in our builds. Nothing critical with this, btw.
Additional context
https://github.com/nspcc-dev/dbft/pull/89
https://github.com/nspcc-dev/dbft/issues/90