BuildOnViction/tomochain-v1

RedBlackTree: Error at left

thanhnguyennguyen opened this issue · 0 comments

DEBUG[09-09|15:55:28] After matching, order (unmatched part) is now back to asks tree order="&{Quantity:+20000000000000000 Price:+20047000000000000000000 ExchangeAddress:[13 58 177 75 186 211 217 159 66 3 189 122 17 172 185 72 130 5 14 126] UserAddress:[23 242 190 215 16 186 80 237 39 174 165 47 196 189 123 218 94 212 160 55] BaseToken:[77 126 162 206 148 146 22 214 177 32 243 170 16 22 65 115 97 90 43 108] QuoteToken:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1] Status:New Side:SELL Type:LO Hash:[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 49 48 50] Signature:0xc00fd29680 FilledAmount:+0 Nonce:+102 MakeFee:+4000000000000000 TakeFee:+4000000000000000 PairName:BTC/TOMO CreatedAt:1568019327 UpdatedAt:1568019327 OrderID:93 NextOrder:[] PrevOrder:[] OrderList:[] Key:}"
DEBUG[09-09|15:55:28] create price list                        detail=20047000000000000000000
DEBUG[09-09|15:55:28] Save orderlist                           key=6274632f746f6d6fa8e3c169521e72e3bee3c02630a1667a3ce8dfa0598bc996381674b6fe5811a8 value="[248 79 160 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 160 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 128 128 138 4 62 192 3 30 113 31 220 0 0]"
DEBUG[09-09|15:55:28] Key not found                            key=6274632f746f6d6fa8e3c169521e72e3bee3c02630a1667a3ce8dfa0598bc99653d7e21e4d2011a8 err="leveldb: not found"
ERROR[09-09|15:55:28] Error at left                            err="leveldb: not found"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xb60055]

goroutine 32 [running]:
github.com/ethereum/go-ethereum/tomox.(*Tree).Put(0xc01c0b8740, 0xc01c0e21b0, 0x28, 0x30, 0xc01c0dc300, 0x51, 0x51, 0x1, 0x421b78, 0x30)
        /home/nguyen/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/tomox/redblacktree.go:79 +0x575
github.com/ethereum/go-ethereum/tomox.(*OrderTree).SaveOrderList(0xc00feeae60, 0xc01c0d2de0, 0x1, 0x1b33278, 0xc01c0d6c40)
        /home/nguyen/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/tomox/ordertree.go:183 +0x475
github.com/ethereum/go-ethereum/tomox.(*OrderList).Save(...)
        /home/nguyen/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/tomox/orderlist.go:161
github.com/ethereum/go-ethereum/tomox.(*OrderTree).CreatePrice(0xc00feeae60, 0xc00fdc6680, 0x1, 0x4)
        /home/nguyen/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/tomox/ordertree.go:167 +0x5b
github.com/ethereum/go-ethereum/tomox.(*OrderTree).InsertOrder(0xc00feeae60, 0xc00fc90b00, 0x1, 0x4, 0xc004d80c20)
        /home/nguyen/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/tomox/ordertree.go:237 +0x154
github.com/ethereum/go-ethereum/tomox.(*OrderBook).processLimitOrder(0xc00feeadc0, 0xc00fc90b00, 0x1, 0x1, 0xc004d80f10, 0x2, 0x2, 0x1, 0xc00ff64f01, 0xc01c0da7f8)
        /home/nguyen/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/tomox/orderbook.go:320 +0x828
github.com/ethereum/go-ethereum/tomox.(*OrderBook).ProcessOrder(0xc00feeadc0, 0xc00fc90b00, 0x3c7a66a13026c001, 0x1, 0xca81168af107982, 0x0, 0x0, 0x2, 0x0, 0x0)
        /home/nguyen/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/tomox/orderbook.go:350 +0x163
github.com/ethereum/go-ethereum/tomox.(*TomoX).ProcessOrderPending(0xc0000e2120, 0x124ae26, 0x1e, 0x4)
        /home/nguyen/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/tomox/tomox.go:866 +0x84c
github.com/ethereum/go-ethereum/miner.(*worker).commitNewWork(0xc0002f4c80)
        /home/nguyen/go/src/github.com/ethereum/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/miner/worker.go:617 +0x1c28