Add assertion and cast before sending reject code
commit5922b6774e352e802ca9a347cc224cfebf1a6a7d
authorWladimir J. van der Laan <laanwj@gmail.com>
Wed, 5 Aug 2015 17:02:19 +0000 (5 19:02 +0200)
committerWladimir J. van der Laan <laanwj@gmail.com>
Wed, 5 Aug 2015 17:02:19 +0000 (5 19:02 +0200)
treee6de6f25e2bd81b9c89d22c46a49873c88e21b42
parenta651403e09ccc9ac0a3322e880d6543dd51a14bd
Add assertion and cast before sending reject code

This gets rid of a warning. Add an assertion to make sure that the
reject code is in the correct range for the network protocol
(if it is outside the range it must be a bug)
src/main.cpp