Slice improvements:

* Rename to makeSlice
* Well defined default construction
* Add `empty`
* Add operator[]
* Buffer arithmetic
This commit is contained in:
Vinnie Falco
2015-07-08 08:53:08 -07:00
parent 5962a4817a
commit 362726de4a
18 changed files with 75 additions and 39 deletions

View File

@@ -3206,7 +3206,7 @@ bool NetworkOPsImp::getFetchPack (uint256 const& hash, Blob& data)
mFetchPack.del (hash, false);
if (hash != sha512Half(make_Slice(data)))
if (hash != sha512Half(makeSlice(data)))
{
m_journal.warning << "Bad entry in fetch pack";
return false;