Comments (2)
index block:
1. index by height
2. index BeginBlock events
3. index EndBlock events
tx index:
1. index tx by events
2. index by height (always)
3. index by hash (always)
from cosmprund.
sample:
index block:
1. index by height (block.height) // primary key: encode(block.height | height) => encode(height)
2. index BeginBlock events (begin_block) // BeginBlock events: encode(eventType.eventAttr|eventValue|height|begin_block) => encode(height)
key: 626c6f636b5f6576656e747372657761726473 2e 76616c696461746f72 0001 7061736776616c6f7065723177736b39376e64746836666464677036796d616c38707264676e323274746b657a7571397771 0001 e15b0f 626567696e5f626c6f636b 0001
block_eventsrewards . validator pasgvaloper1wsk97ndth6fddgp6ymal8prdgn22ttkezuq9wq begin_block
key: block_eventsrewards.validatorpasgvaloper1wsk97ndth6fddgp6ymal8prdgn22ttkezuq9wq�[begin_block
3. index EndBlock events (end_block) // EndBlock events: encode(eventType.eventAttr|eventValue|height|end_block) => encode(height)
tx index:
1. index tx by events (key/value/result.Height/result.Index)
key hex: 636f696e5f72656365697665642e616d6f756e74 2f 313432383537303030303030307570617367 2f 3839333035 2f 30
key str: coin_received.amount / 1428570000000upasg / 89305 / 0
value hex: a53e6f497cf85cbe6e9f436effa96783cf9df8d1c46cbfdd4a0a2f72a7e054c0 <== hash ~ 32 bytes
value str: �>oI|�\�n�Cn��g�ϝ���l��J
2. index by height (always) // tx.height (types.TxHeightKey/result.Height/result.Height/result.Index)
key hex: 74782e6865696768742f38393334342f38393334342f30
key str: tx.height/89344/89344/0
value hex: 3b998e4324296aca3d9e1ac19e7dc1a5a9d1886eeebb175d2911db0af3ed6e9c <== hash ~ 32 bytes
value str: ;��C$)j�=���}���шn�])�
3. index by hash (always)
key hex: 32d37405f89e3236015771c0b9c6ae0ed49dcda62e089a4d4cb108c74f4deaf1 <<== hash (sha256) ~ 32 bytes
key str: 2�t��26Wq��Ʈԝͦ�ML�OM��
value hex: 08e8bb051abf020a9f010a9c010a372f636f736d6f732e646973747269627574696f6e2e763162657461312e4d7367576974686472617744656c656761746f7252657761726412610a2b706173673137797663387779767277676b346a35326478616761663936616b71347a6e75307377636c733912327061736776616c6f7065723137797663387779767277676b346a35326478616761663936616b71347a6e7530726a6a68336512590a510a460a1f2f636f736d6f732e63727970746f2e736563703235366b312e5075624b657912230a210302bc0dfae535c7d057a9c96ba068bb3e028c11bf1768db7f01457e25163c20dd12040a02080118a104120410c09a0c1a40c92f4065609b80762d8919088c34508d1c749f0a27caa2c7d0da1a06dc87a80b336ae9ef262737ef209d790ac5d3084cb238efaec72a4aee2011fadb86d4522a229a07123b0a390a372f636f736d6f732e646973747269627574696f6e2e763162657461312e4d7367576974686472617744656c656761746f725265776172641aff025b7b226576656e7473223a5b7b2274797065223a226d657373616765222c2261747472696275746573223a5b7b226b6579223a22616374696f6e222c2276616c7565223a222f636f736d6f732e646973747269627574696f6e2e763162657461312e4d7367576974686472617744656c656761746f72526577617264227d2c7b226b6579223a226d6f64756c65222c2276616c7565223a22646973747269627574696f6e227d2c7b226b6579223a2273656e646572222c2276616c7565223a22706173673137797663387779767277676b346a35326478616761663936616b71347a6e75307377636c7339227d5d7d2c7b2274797065223a2277697468647261775f72657761726473222c2261747472696275746573223a5b7b226b6579223a22616d6f756e74227d2c7b226b6579223a2276616c696461746f72222c2276616c7565223a227061736776616c6f7065723137797663387779767277676b346a35326478616761663936616b71347a6e7530726a6a683365227d5d7d5d7d5d28c09a0c30cfba053a0d0a02747812070a0366656518013a420a027478123c0a076163635f736571122f706173673137797663387779767277676b346a35326478616761663936616b71347a6e75307377636c73392f35343518013a6d0a02747812670a097369676e61747572651258795339415a5743626748597469526b496a4452516a5278306e776f6e79714c48304e6f61427479487141737a61756e764a69633337794364655172463077684d736a6a76727363715375346745667262687452534b673d3d18013a4e0a076d65737361676512430a06616374696f6e12372f636f736d6f732e646973747269627574696f6e2e763162657461312e4d7367576974686472617744656c656761746f7252657761726418013a610a1077697468647261775f72657761726473120a0a06616d6f756e74180112410a0976616c696461746f7212327061736776616c6f7065723137797663387779767277676b346a35326478616761663936616b71347a6e7530726a6a68336518013a5c0a076d65737361676512180a066d6f64756c65120c646973747269627574696f6e180112370a0673656e646572122b706173673137797663387779767277676b346a35326478616761663936616b71347a6e75307377636c73391801
value str:��
from cosmprund.
Related Issues (11)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosmprund.