Add sanity check asserts to span when -DDEBUG
Add sanity check asserts to span when -DDEBUG


Former-commit-id: 26d77e0d54c70bee2237425df9230dac03941ea4
syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin