nspcc-dev / neo-go

Go Node and SDK for the Neo blockchain
MIT License
123 stars 79 forks source link

core: restrict the number of allowed SC notifications #3640

Open AnnaShaleva opened 3 weeks ago

AnnaShaleva commented 3 weeks ago

Close #3490.

@roman-khimov, what do you think? Another option is to cache size for every emitted notification and then check the overall notifications size every time we're going to emit one more notification, it also may be implemented.

I'll add more tests once we agree on solution.

AnnaShaleva commented 3 weeks ago

Ref. https://github.com/neo-project/neo/pull/3548.