Remove unnecessary uint32 type conversions.

This commit is contained in:
Josh Rickmar 2014-06-16 16:25:04 -05:00
parent f418fe3772
commit 0f808dc00f
2 changed files with 2 additions and 2 deletions

View file

@ -2211,7 +2211,7 @@ func SignRawTransaction(icmd btcjson.Cmd) (interface{}, error) {
} }
inputs[btcwire.OutPoint{ inputs[btcwire.OutPoint{
Hash: *inputSha, Hash: *inputSha,
Index: uint32(rti.Vout), Index: rti.Vout,
}] = script }] = script
} }

View file

@ -947,7 +947,7 @@ func (s *Store) Rollback(height int32) error {
} }
op := btcwire.OutPoint{ op := btcwire.OutPoint{
Hash: *rr.Tx().Sha(), Hash: *rr.Tx().Sha(),
Index: uint32(prev.OutputIndex), Index: prev.OutputIndex,
} }
s.unconfirmed.spentBlockOutPointKeys[op] = *prev s.unconfirmed.spentBlockOutPointKeys[op] = *prev
s.unconfirmed.spentBlockOutPoints[*prev] = r s.unconfirmed.spentBlockOutPoints[*prev] = r