| 320 | return ; |
| 321 | } |
| 322 | bool GetContractData(string srcipt,vector<unsigned char> key) |
| 323 | { |
| 324 | CRegID regid(srcipt); |
| 325 | if (regid.IsEmpty() == true) { |
| 326 | return false; |
| 327 | } |
| 328 | CContractDBCache contractScriptTemp(*pScriptDBTip, true); |
| 329 | if (!contractScriptTemp.HasContract(regid)) { |
| 330 | return false; |
| 331 | } |
| 332 | vector<unsigned char> value; |
| 333 | int tipH = chainActive.Height(); |
| 334 | CDbOpLog operLog; |
| 335 | if (!contractScriptTemp.GetContractData(tipH,regid,key, value)) { |
| 336 | return false; |
| 337 | } |
| 338 | return true; |
| 339 | } |
| 340 | string CreatWriteTx(string &hash) |
| 341 | { |
| 342 | string shash = CreateRegScript("dsjkLDFfhenmx2JkFMdtJ22TYDvSGgmJem","unit_test.bin"); |
nothing calls this directly
no test coverage detected