Newly introduced DoS



Summary:

In this code snippet, there is a bool function called "AcceptBlock()" that takes in no parameters. Inside this function, there is a map iterator that finds the previous block index. If the iterator does not find the previous block index, a DoS error with a message of "prev block not found" will be returned. The question following the code asks whether or not it is possible for a peer with more blocks than you to trigger this error.


Updated on: 2023-06-04T20:05:49.777042+00:00