Fixed two bugs in transaction validation.

Signed-off-by: Andrew Miller <amiller@dappervision.com>
Merge pull request #5 from amiller/master

fix transaction validation bugs