helium / blockchain-core

Apache License 2.0
213 stars 85 forks source link

More verbose ledger_poc_v3:verify error #1343

Open vihu opened 2 years ago

vihu commented 2 years ago

Problem

When ledger POC verification fails we can't really tell whether it failed due to incorrect challenger or the block hash.

Solution

This switches the return type for poc_v3:verify to be an ok | {error, ...} and passes it down.