BuildOnViction/tomochain-v1

Error handling on verification funcs

ngtuna opened this issue · 2 comments

Should be carefully handling errors on verification funcs to make chain keep running instead of throwing out bad block error and making chain stuck. For example:

validateMatchingOrder causes bad block in case Relayer Address is invalid which can be easily made by sending fake order via RPC API.

avoid this by validating orders before pushing to order pool: #736 #741