aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <tingwei.lan@cobinhood.com>2019-03-26 15:54:19 +0800
committerJhih-Ming Huang <jm.huang@cobinhood.com>2019-05-06 10:44:04 +0800
commitf28f408c6259d7342bcb3aad6a6558db78943cfe (patch)
tree3a1d04062fec1e1fe0d62a8934846c0ebc740622
parentfc018ce069cefde728b8b579d802b8fa1c008af6 (diff)
downloaddexon-f28f408c6259d7342bcb3aad6a6558db78943cfe.tar.gz
dexon-f28f408c6259d7342bcb3aad6a6558db78943cfe.tar.zst
dexon-f28f408c6259d7342bcb3aad6a6558db78943cfe.zip
core: vm: sqlvm: schema: move Rest to the bottom
It is a special field which should not be accessed by any other files.
-rw-r--r--core/vm/sqlvm/schema/schema.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/vm/sqlvm/schema/schema.go b/core/vm/sqlvm/schema/schema.go
index 56b0be49a..2937d3660 100644
--- a/core/vm/sqlvm/schema/schema.go
+++ b/core/vm/sqlvm/schema/schema.go
@@ -161,9 +161,11 @@ type column struct {
ForeignTable TableRef
ForeignColumn ColumnRef
Sequence SequenceRef
- Rest interface{}
SlotOffset uint8
ByteOffset uint8
+ // Rest is a special field reserved for use in EncodeRLP. The value stored
+ // in it will be overwritten every time EncodeRLP is called.
+ Rest interface{}
}
// Column defines sqlvm index struct.