Skip to content
Snippets Groups Projects
Unverified Commit 1f8fd9eb authored by Hans Moog's avatar Hans Moog Committed by GitHub
Browse files

Merge pull request #43 from iotaledger/fix-GetTrunkHash

:bug: fix GetTrunkTransactionHash call
parents 106250a1 e9ea0b5a
Branches
Tags
No related merge requests found
...@@ -82,8 +82,8 @@ func checkSolidity(transaction *value_transaction.ValueTransaction) (result bool ...@@ -82,8 +82,8 @@ func checkSolidity(transaction *value_transaction.ValueTransaction) (result bool
} }
} }
// check solidity of branch transaction if it is not genesis // check solidity of trunk transaction if it is not genesis
if trunkTransactionHash := transaction.GetBranchTransactionHash(); trunkTransactionHash != meta_transaction.BRANCH_NULL_HASH { if trunkTransactionHash := transaction.GetTrunkTransactionHash(); trunkTransactionHash != meta_transaction.BRANCH_NULL_HASH {
if trunkTransaction, trunkErr := GetTransaction(trunkTransactionHash); trunkErr != nil { if trunkTransaction, trunkErr := GetTransaction(trunkTransactionHash); trunkErr != nil {
err = trunkErr err = trunkErr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment