This modifies the SSGenBlockVotedOn function to directly copy the hash the vote commits to into a statically sized array versus calling the hash function and thus can remove the potential runtime error. This is preferred because the code will fail to compile if the size of chainhash.HashSize is every changed which is desirable because it would mean the assumptions the code makes would be invalidated. It also updates all callers in the repository accordingly. |
||
|---|---|---|
| .. | ||
| doc.go | ||
| error.go | ||
| log.go | ||
| mempool_test.go | ||
| mempool.go | ||
| policy_test.go | ||
| policy.go | ||
| README.md | ||