bail from check notarization if there is no valid notarization

This commit is contained in:
blackjok3r
2018-09-24 20:58:30 +08:00
parent 43de331bef
commit a8412c31ce

View File

@@ -24,9 +24,13 @@ NotarisationsInBlock ScanBlockNotarisations(const CBlock &block, int nHeight)
NotarisationData data;
bool parsed = ParseNotarisationOpReturn(tx, data);
printf("Parsed notarisation data for %s \n",data.symbol);
if (!parsed) data = NotarisationData();
if (strlen(data.symbol) == 0)
continue;
printf("Checked notarisation data for %s \n",data.symbol);
int authority = GetSymbolAuthority(data.symbol);