From f7ed140a9b2ad5ecb9f42b889e8e959ae6db41f8 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Fri, 19 Jun 2015 01:43:15 -0400 Subject: [PATCH] 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. --- wtxmgr/query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wtxmgr/query.go b/wtxmgr/query.go index 3abb734..b02a2ba 100644 --- a/wtxmgr/query.go +++ b/wtxmgr/query.go @@ -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 }