fix transaction validation bugs

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