aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <tingwei.lan@cobinhood.com>2019-03-26 15:54:19 +0800
committerlantw44 <lantw44@gmail.com>2019-03-29 18:40:42 +0800
commit192453fe7c042000ffbd7d4ac160b1a98b6d0516 (patch)
treef7ebaeaa3873d8ead18e437eeb3f431fee1ac923
parentc0bd8666ba48082830ccdf61259f21fbbd216ebb (diff)
downloaddexon-192453fe7c042000ffbd7d4ac160b1a98b6d0516.tar.gz
dexon-192453fe7c042000ffbd7d4ac160b1a98b6d0516.tar.zst
dexon-192453fe7c042000ffbd7d4ac160b1a98b6d0516.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.