X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=serialize.h;h=7063b6ab8f1e86f651b775205307ade36b10df50;hb=d5d8c21930dbcbcb71841d73d0316a323540f272;hp=d3f6b7d7031916d544d9fa953a7c5ea99a43c185;hpb=7d700b34ba4213906a7429292a7f3aae1f30d677;p=novacoin-seeder.git diff --git a/serialize.h b/serialize.h index d3f6b7d..7063b6a 100644 --- a/serialize.h +++ b/serialize.h @@ -60,7 +60,7 @@ class CDataStream; class CAutoFile; static const unsigned int MAX_SIZE = 0x02000000; -static const int PROTOCOL_VERSION = 60000; +static const int PROTOCOL_VERSION = 60011; // Used to bypass the rule against non-const reference to temporary // where it makes sense with wrappers such as CFlatData or CTxDB @@ -932,18 +932,6 @@ public: iterator insert(iterator it, const char& x=char()) { return vch.insert(it, x); } void insert(iterator it, size_type n, const char& x) { vch.insert(it, n, x); } - void insert(iterator it, const_iterator first, const_iterator last) - { - if (it == vch.begin() + nReadPos && last - first <= nReadPos) - { - // special case for inserting at the front when there's room - nReadPos -= (last - first); - memcpy(&vch[nReadPos], &first[0], last - first); - } - else - vch.insert(it, first, last); - } - void insert(iterator it, std::vector::const_iterator first, std::vector::const_iterator last) { if (it == vch.begin() + nReadPos && last - first <= nReadPos)