Reorder wtxmgr.CreditRecord fields.

This reverses the order of index and amount fields to match
DebitRecord and also saves 8 bytes per instance on amd64.
This commit is contained in:
Josh Rickmar 2015-06-19 01:43:15 -04:00
parent e5e239e124
commit f7ed140a9b

View file

@ -28,8 +28,8 @@ import (
// transaction. Further details may be looked up by indexing a wire.MsgTx.TxOut
// with the Index field.
type CreditRecord struct {
Index uint32
Amount btcutil.Amount
Index uint32
Spent bool
Change bool
}