Fixed two bugs in transaction validation.

Signed-off-by: Andrew Miller <amiller@dappervision.com>