fixed bugs with block creation, validated that higher fee trx are preferred and no duplicate inputs will be accepted