forked from lthn/blockchain
check return value of do_serialize in get_attachment_extra_info_details()
This commit is contained in:
parent
67e416b862
commit
bc1152ede5
1 changed files with 2 additions and 1 deletions
|
|
@ -625,7 +625,8 @@ namespace currency
|
|||
//put hash into extra
|
||||
std::stringstream ss;
|
||||
binary_archive<true> oar(ss);
|
||||
::do_serialize(oar, const_cast<std::vector<attachment_v>&>(attachment));
|
||||
if (!::do_serialize(oar, const_cast<std::vector<attachment_v>&>(attachment)))
|
||||
return;
|
||||
std::string buff = ss.str();
|
||||
eai.sz = buff.size();
|
||||
eai.hsh = get_blob_hash(buff);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue