Refactor tests and add column families
This commit is contained in:
parent
70939ecfda
commit
cee1aab843
38 changed files with 159 additions and 79 deletions
4
db/db.go
4
db/db.go
|
@ -469,8 +469,8 @@ func ReadWriteRawNCF(db *grocksdb.DB, options *IterOptions, out string, n int) {
|
|||
value := kv.Value.([]byte)
|
||||
keyHex := hex.EncodeToString(key)
|
||||
valueHex := hex.EncodeToString(value)
|
||||
log.Println(keyHex)
|
||||
log.Println(valueHex)
|
||||
//log.Println(keyHex)
|
||||
//log.Println(valueHex)
|
||||
file.WriteString(keyHex)
|
||||
file.WriteString(",")
|
||||
file.WriteString(valueHex)
|
||||
|
|
|
@ -102,8 +102,8 @@ func OpenAndFillTmpDB(filePath string) (*grocksdb.DB, [][]string, func(), error)
|
|||
}
|
||||
|
||||
func TestResolve(t *testing.T) {
|
||||
filePath := "../resources/reposted_claim.csv"
|
||||
db, _, toDefer, err := OpenAndFillTmpDB(filePath)
|
||||
filePath := "../testdata/W.csv"
|
||||
db, _, toDefer, _, err := OpenAndFillTmpDBCF(filePath)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
return
|
||||
|
@ -115,7 +115,7 @@ func TestResolve(t *testing.T) {
|
|||
|
||||
func TestIter(t *testing.T) {
|
||||
|
||||
filePath := "../resources/reposted_claim.csv"
|
||||
filePath := "../testdata/W.csv"
|
||||
|
||||
db, records, toDefer, handle, err := OpenAndFillTmpDBCF(filePath)
|
||||
if err != nil {
|
||||
|
|
|
@ -59,6 +59,41 @@ const (
|
|||
OnesCompTwiddle32 uint32 = 0xffffffff
|
||||
)
|
||||
|
||||
func GetPrefixes() [][]byte {
|
||||
return [][]byte{
|
||||
{ClaimToSupport},
|
||||
{SupportToClaim},
|
||||
{ClaimToTXO},
|
||||
{TXOToClaim},
|
||||
{ClaimToChannel},
|
||||
{ChannelToClaim},
|
||||
{ClaimShortIdPrefix},
|
||||
{EffectiveAmount},
|
||||
{ClaimExpiration},
|
||||
{ClaimTakeover},
|
||||
{PendingActivation},
|
||||
{ActivatedClaimAndSupport},
|
||||
{ActiveAmount},
|
||||
{Repost},
|
||||
{RepostedClaim},
|
||||
{Undo},
|
||||
{ClaimDiff},
|
||||
{Tx},
|
||||
{BlockHash},
|
||||
{Header},
|
||||
{TxNum},
|
||||
{TxCount},
|
||||
{TxHash},
|
||||
{UTXO},
|
||||
{HashXUTXO},
|
||||
{HashXHistory},
|
||||
{DBState},
|
||||
{ChannelCount},
|
||||
{SupportAmount},
|
||||
{BlockTXs},
|
||||
}
|
||||
}
|
||||
|
||||
type PrefixRowKV struct {
|
||||
Key interface{}
|
||||
Value interface{}
|
||||
|
|
|
@ -145,144 +145,152 @@ func testGeneric(filePath string, prefix byte, numPartials int) func(*testing.T)
|
|||
}
|
||||
|
||||
func TestSupportAmount(t *testing.T) {
|
||||
testGeneric("../../resources/support_amount.csv", prefixes.SupportAmount, 1)(t)
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.SupportAmount)
|
||||
testGeneric(filePath, prefixes.SupportAmount, 1)(t)
|
||||
}
|
||||
|
||||
func TestChannelCount(t *testing.T) {
|
||||
testGeneric("../../resources/channel_count.csv", prefixes.ChannelCount, 1)(t)
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.ChannelCount)
|
||||
testGeneric(filePath, prefixes.ChannelCount, 1)(t)
|
||||
}
|
||||
|
||||
func TestDBState(t *testing.T) {
|
||||
testGeneric("../../resources/db_state.csv", prefixes.DBState, 0)(t)
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.DBState)
|
||||
testGeneric(filePath, prefixes.DBState, 0)(t)
|
||||
}
|
||||
|
||||
func TestBlockTxs(t *testing.T) {
|
||||
testGeneric("../../resources/block_txs.csv", prefixes.BlockTXs, 1)(t)
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.BlockTXs)
|
||||
testGeneric(filePath, prefixes.BlockTXs, 1)(t)
|
||||
}
|
||||
|
||||
func TestTxCount(t *testing.T) {
|
||||
testGeneric("../../resources/tx_count.csv", prefixes.TxCount, 1)(t)
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.TxCount)
|
||||
testGeneric(filePath, prefixes.TxCount, 1)(t)
|
||||
}
|
||||
|
||||
func TestTxHash(t *testing.T) {
|
||||
testGeneric("../../resources/tx_hash.csv", prefixes.TxHash, 1)(t)
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.TxHash)
|
||||
testGeneric(filePath, prefixes.TxHash, 1)(t)
|
||||
}
|
||||
|
||||
func TestTxNum(t *testing.T) {
|
||||
testGeneric("../../resources/tx_num.csv", prefixes.TxNum, 1)(t)
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.TxNum)
|
||||
testGeneric(filePath, prefixes.TxNum, 1)(t)
|
||||
}
|
||||
|
||||
func TestTx(t *testing.T) {
|
||||
testGeneric("../../resources/tx.csv", prefixes.Tx, 1)(t)
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.Tx)
|
||||
testGeneric(filePath, prefixes.Tx, 1)(t)
|
||||
}
|
||||
|
||||
func TestHashXHistory(t *testing.T) {
|
||||
filePath := "../../resources/hashx_history.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.HashXHistory)
|
||||
testGeneric(filePath, prefixes.HashXHistory, 2)(t)
|
||||
}
|
||||
|
||||
func TestUndo(t *testing.T) {
|
||||
filePath := "../../resources/undo.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.Undo)
|
||||
testGeneric(filePath, prefixes.Undo, 1)(t)
|
||||
}
|
||||
|
||||
func TestBlockHash(t *testing.T) {
|
||||
filePath := "../../resources/block_hash.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.BlockHash)
|
||||
testGeneric(filePath, prefixes.BlockHash, 1)(t)
|
||||
}
|
||||
|
||||
func TestBlockHeader(t *testing.T) {
|
||||
filePath := "../../resources/header.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.Header)
|
||||
testGeneric(filePath, prefixes.Header, 1)(t)
|
||||
}
|
||||
|
||||
func TestClaimToTXO(t *testing.T) {
|
||||
filePath := "../../resources/claim_to_txo.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.ClaimToTXO)
|
||||
testGeneric(filePath, prefixes.ClaimToTXO, 1)(t)
|
||||
}
|
||||
|
||||
func TestTXOToClaim(t *testing.T) {
|
||||
filePath := "../../resources/txo_to_claim.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.TXOToClaim)
|
||||
testGeneric(filePath, prefixes.TXOToClaim, 2)(t)
|
||||
}
|
||||
|
||||
func TestClaimShortID(t *testing.T) {
|
||||
filePath := "../../resources/claim_short_id_prefix.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.ClaimShortIdPrefix)
|
||||
testGeneric(filePath, prefixes.ClaimShortIdPrefix, 3)(t)
|
||||
}
|
||||
|
||||
func TestClaimToChannel(t *testing.T) {
|
||||
filePath := "../../resources/claim_to_channel.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.ClaimToChannel)
|
||||
testGeneric(filePath, prefixes.ClaimToChannel, 3)(t)
|
||||
}
|
||||
|
||||
func TestChannelToClaim(t *testing.T) {
|
||||
filePath := "../../resources/channel_to_claim.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.ChannelToClaim)
|
||||
testGeneric(filePath, prefixes.ChannelToClaim, 4)(t)
|
||||
}
|
||||
|
||||
func TestClaimToSupport(t *testing.T) {
|
||||
filePath := "../../resources/claim_to_support.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.ClaimToSupport)
|
||||
testGeneric(filePath, prefixes.ClaimToSupport, 3)(t)
|
||||
}
|
||||
|
||||
func TestSupportToClaim(t *testing.T) {
|
||||
filePath := "../../resources/support_to_claim.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.SupportToClaim)
|
||||
testGeneric(filePath, prefixes.SupportToClaim, 2)(t)
|
||||
}
|
||||
|
||||
func TestClaimExpiration(t *testing.T) {
|
||||
filePath := "../../resources/claim_expiration.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.ClaimExpiration)
|
||||
testGeneric(filePath, prefixes.ClaimExpiration, 3)(t)
|
||||
}
|
||||
|
||||
func TestClaimTakeover(t *testing.T) {
|
||||
filePath := "../../resources/claim_takeover.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.ClaimTakeover)
|
||||
testGeneric(filePath, prefixes.ClaimTakeover, 1)(t)
|
||||
}
|
||||
|
||||
func TestPendingActivation(t *testing.T) {
|
||||
filePath := "../../resources/pending_activation.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.PendingActivation)
|
||||
testGeneric(filePath, prefixes.PendingActivation, 4)(t)
|
||||
}
|
||||
|
||||
func TestActivated(t *testing.T) {
|
||||
filePath := "../../resources/activated_claim_and_support.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.ActivatedClaimAndSupport)
|
||||
testGeneric(filePath, prefixes.ActivatedClaimAndSupport, 3)(t)
|
||||
}
|
||||
|
||||
func TestActiveAmount(t *testing.T) {
|
||||
filePath := "../../resources/active_amount.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.ActiveAmount)
|
||||
testGeneric(filePath, prefixes.ActiveAmount, 5)(t)
|
||||
}
|
||||
|
||||
func TestEffectiveAmount(t *testing.T) {
|
||||
filePath := "../../resources/effective_amount.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.EffectiveAmount)
|
||||
testGeneric(filePath, prefixes.EffectiveAmount, 4)(t)
|
||||
}
|
||||
|
||||
func TestRepost(t *testing.T) {
|
||||
filePath := "../../resources/repost.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.Repost)
|
||||
testGeneric(filePath, prefixes.Repost, 1)(t)
|
||||
}
|
||||
|
||||
func TestRepostedClaim(t *testing.T) {
|
||||
filePath := "../../resources/reposted_claim_cf.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.RepostedClaim)
|
||||
testGeneric(filePath, prefixes.RepostedClaim, 3)(t)
|
||||
}
|
||||
|
||||
func TestClaimDiff(t *testing.T) {
|
||||
filePath := "../../resources/claim_diff.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.ClaimDiff)
|
||||
testGeneric(filePath, prefixes.ClaimDiff, 1)(t)
|
||||
}
|
||||
|
||||
func TestUTXO(t *testing.T) {
|
||||
filePath := "../../resources/utxo.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.UTXO)
|
||||
testGeneric(filePath, prefixes.UTXO, 1)(t)
|
||||
}
|
||||
|
||||
func TestHashXUTXO(t *testing.T) {
|
||||
filePath := "../../resources/hashx_utxo.csv"
|
||||
filePath := fmt.Sprintf("../../testdata/%c.csv", prefixes.HashXUTXO)
|
||||
testGeneric(filePath, prefixes.HashXUTXO, 3)(t)
|
||||
}
|
||||
|
||||
|
|
56
main.go
56
main.go
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
|
@ -49,36 +50,43 @@ func main() {
|
|||
log.Fatalln(err)
|
||||
}
|
||||
|
||||
db.ReadWriteRawN(dbVal, options, "./resources/support_amount.csv", 10)
|
||||
db.ReadWriteRawN(dbVal, options, "./testdata/support_amount.csv", 10)
|
||||
|
||||
return
|
||||
} else if args.CmdType == server.DBCmd2 {
|
||||
var rawPrefix byte = prefixes.RepostedClaim
|
||||
pxs := prefixes.GetPrefixes()
|
||||
for _, prefix := range pxs {
|
||||
//var rawPrefix byte = prefixes.ClaimExpiration
|
||||
|
||||
prefix := []byte{rawPrefix}
|
||||
columnFamily := string(prefix)
|
||||
options := &db.IterOptions{
|
||||
FillCache: false,
|
||||
Prefix: prefix,
|
||||
Start: nil,
|
||||
Stop: nil,
|
||||
IncludeStart: true,
|
||||
IncludeStop: false,
|
||||
IncludeKey: true,
|
||||
IncludeValue: true,
|
||||
RawKey: true,
|
||||
RawValue: true,
|
||||
//prefix := []byte{rawPrefix}
|
||||
columnFamily := string(prefix)
|
||||
options := &db.IterOptions{
|
||||
FillCache: false,
|
||||
Prefix: prefix,
|
||||
Start: nil,
|
||||
Stop: nil,
|
||||
IncludeStart: true,
|
||||
IncludeStop: false,
|
||||
IncludeKey: true,
|
||||
IncludeValue: true,
|
||||
RawKey: true,
|
||||
RawValue: true,
|
||||
}
|
||||
|
||||
dbVal, handles, err := db.GetDBCF("/mnt/d/data/snapshot_1072108/lbry-rocksdb/", columnFamily)
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
||||
options.CfHandle = handles[1]
|
||||
var n = 10
|
||||
if bytes.Equal(prefix, []byte{prefixes.Undo}) || bytes.Equal(prefix, []byte{prefixes.DBState}) {
|
||||
n = 1
|
||||
}
|
||||
|
||||
db.ReadWriteRawNCF(dbVal, options, fmt.Sprintf("./testdata/%s.csv", columnFamily), n)
|
||||
}
|
||||
|
||||
dbVal, handles, err := db.GetDBCF("/mnt/d/data/snapshot_1072108/lbry-rocksdb/", columnFamily)
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
||||
options.CfHandle = handles[1]
|
||||
|
||||
db.ReadWriteRawNCF(dbVal, options, "./resources/reposted_claim_cf.csv", 10)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
73,9c89283ba0f3227f6c03b70216b9f665f0118d5e0fa729cedf4fb34d6a34f46300102d0a03cf8317b51915dc662e9786b9d4c0c7443652ea58ea91124e2c62dfd3ab23dbd7c9446900102d0d001168ae000700102d0dffffffffffffffff00102d0a
|
|
|
@ -35,7 +35,7 @@ func TestUDPPing(t *testing.T) {
|
|||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
||||
toAddr := "spv16.lbry.com"
|
||||
toAddr := "spv17.lbry.com"
|
||||
toPort := "50001"
|
||||
|
||||
pong, err := server.UDPPing(toAddr, toPort)
|
||||
|
|
1
resources/tx.csv → testdata/B.csv
vendored
1
resources/tx.csv → testdata/B.csv
vendored
|
@ -1,3 +1,4 @@
|
|||
B,
|
||||
4200000031a2e262d60074f07330d7187907e5b02be8f9b3c60cdc03d776314912,0200000001d922db1c8020a8a101ccab3a9dff62eccd8660c9351bf91af8dc481544395821010000006a473044022047bbe0eec4931aa332ac089dfb56bac095e4e2f11258f95f8dc11f2d915399b802207cbe15f5c1ad882ef7cf7c987c5380a56613c7bbfd56e4a8e4161a46fd522a84012103e1a29d4cb998f7a6a165f1a2aaa524f319a59beb4f9336f542175ddecc6cac03feffffff0200ca9a3b000000001976a914028b4111c923a411ba165760cacea097b9b0b77588ac567d1329400000001976a914bc3826102bebb5ab7d88cb080b5234b67aac787888ac4ad50c00
|
||||
420000004e91edda0f9cd3bcef9565a31e6bbbd34c731483e03ec7d8819158ac30,02000000018fb565983ddfc193da15f68414712779a7de703babef37c1b30fb8956abbd034010000006a4730440220011f6c22ecafdfc03fde256c0676b7d840e8aacd9e75a02fde40862451d97b7f022072a8093343d900d5543a00e648352a7c7cf2389d89a5863d33c34e44f3acaa590121036be4ec00fc805765e824a604fecc376cdc33cd3a8d175fad63980e16e79d8809feffffff026e39190d000000001976a9146911aebb1ec343bb432aa3edf9f08e4f110a541e88ac40787d01000000001976a914ea2faaf77fab748cddca231f9d528c43c2f3a78e88ac02340f00
|
||||
420000008070865693cd82ed0f59896e34973adbff0583fb8a1293919591446075,02000000017c0ac8ee47ebdcbf4c36a0f1ff0a77347658099b734e65bd662ca510b91385b2000000006a473044022023da5a18003e6db9144b691ea77cb267b911678e15cecab4d22c52b4ced6ad3302203ba4e2cb7d1ad2c88aa89827767cea76c1805a366598fc53513807f3e5db78cd0121022c949b389ff428dc58ca8f0803dab7cde26cbc0a12b26ef758853c1266f9e543feffffff023dabb942020000001976a91440ee9a09269bdd2f3532b8bc18d792cd435de79488ac002d3101000000001976a914b4158a6a1b7505068bc5df3b0f76a02cc38014d788ac9a880f00
|
|
1
resources/block_hash.csv → testdata/C.csv
vendored
1
resources/block_hash.csv → testdata/C.csv
vendored
|
@ -1,3 +1,4 @@
|
|||
C,
|
||||
4300000000,63f4346a4db34fdfce29a70f5e8d11f065f6b91602b7036c7f22f3a03b28899c
|
||||
4300000001,246cb85843ac936d55388f2ff288b011add5b1b20cca9cfd19a403ca2c9ecbde
|
||||
4300000002,0044e1258b865d262587c28ff98853bc52bb31266230c1c648cc9004047a5428
|
|
|
@ -1,3 +1,4 @@
|
|||
D,
|
||||
44000100ffffffffffffd8ef002741130000,a51d5c567412654e6d741114fea6fb851dec7380
|
||||
44000101ffffffffffffd8ef002741140001,11158037afca9c2efabc3dff55e352bf1f5634c5
|
||||
44000102ffffffffffffd8ef002741150000,a4a575934de77d8ec8589595d8cd91857e3cf5ba
|
|
1
resources/claim_to_txo.csv → testdata/E.csv
vendored
1
resources/claim_to_txo.csv → testdata/E.csv
vendored
|
@ -1,3 +1,4 @@
|
|||
E,
|
||||
45000000a420c44374f4f399ab4807fa1901eefc87,0297ec2100000297ec21000000000000000f42400100246167656e63652d64c3a974727569742c2d6e6f7576656175782d736b696e732d6c65616b
|
||||
45000000c27eef5ea69e0d73f118826c7e326bb469,00371d66000000371d660000000000001dcd650001000e4d696e696174757265486f757365
|
||||
4500000110e40894573f528c393fbcec7a472ec853,01516b32000001516b3200000000000000989680010021696f2d3137372d4e6f616d2d43686f6d736b792d6f6e2d434f494e54454c50524f
|
|
|
@ -1,3 +1,4 @@
|
|||
F,
|
||||
460001000161002741130000,002741130000
|
||||
46000100026135002741130000,002741130000
|
||||
4600010003613531002741130000,002741130000
|
|
1
resources/txo_to_claim.csv → testdata/G.csv
vendored
1
resources/txo_to_claim.csv → testdata/G.csv
vendored
|
@ -1,3 +1,4 @@
|
|||
G,
|
||||
4700162aa70000,c78ac4c326cd43cdc0c844b7cea13659449ab3e40015746573742d70686f746f2d7374726173626f757267
|
||||
4700162f600000,ebf95f7fdb89db5467bb1b88ea3b0f0f7ee5ce360003636e63
|
||||
47001630960000,a6f91a86837ab84a4cf0d2dcbe94704a528cf820000f776f6e646572776f6d616e31393933
|
|
1
resources/header.csv → testdata/H.csv
vendored
1
resources/header.csv → testdata/H.csv
vendored
|
@ -1,3 +1,4 @@
|
|||
H,
|
||||
4800000000,010000000000000000000000000000000000000000000000000000000000000000000000cc59e59ff97ac092b55e423aa5495151ed6fb80570a5bb78cd5bd1c3821c21b8010000000000000000000000000000000000000000000000000000000000000033193156ffff001f07050000
|
||||
4800000001,0000002063f4346a4db34fdfce29a70f5e8d11f065f6b91602b7036c7f22f3a03b28899cba888e2f9c037f831046f8ad09f6d378f79c728d003b177a64d29621f481da5d01000000000000000000000000000000000000000000000000000000000000003c406b5746e1001f5b4f0000
|
||||
4800000002,00000020246cb85843ac936d55388f2ff288b011add5b1b20cca9cfd19a403ca2c9ecbde09d8734d81b5f2eb1b653caf17491544ddfbc72f2f4c0c3f22a3362db5ba9d4701000000000000000000000000000000000000000000000000000000000000003d406b57ffff001f4ff20000
|
|
|
@ -1,3 +1,4 @@
|
|||
I,
|
||||
49000000a420c44374f4f399ab4807fa1901eefc870297ec210000,a02a093c607b6772907f923cf15014397146874b
|
||||
49000000c27eef5ea69e0d73f118826c7e326bb46900371d660000,b237333ca0e44b0a91429a20420ed9bc6ea56a53
|
||||
4900000110e40894573f528c393fbcec7a472ec85301516b320000,f2a31cf5c4c3cd75a5c839d6b05947dfeb1970bb
|
|
|
@ -1,3 +1,4 @@
|
|||
J,
|
||||
4a00009f35397ada0476b04c67978ad081b50833ed0005676866676800201f7f0000,2febc9f39e70fac69ce7504dc7fb9523c9617c68
|
||||
4a0000cbef248847373c999de142bc2d7da4d014100013646f6d656e7a61696e2d657374616661646f720358fe5f0000,2b15c03bb512d84e7450b0fbdbc4db1f9b454137
|
||||
4a0000eff19123a0b3087a0f059a5e0c10d74377560010636176652d73746f72792d7974702d3102fb1edf0000,dc07a33c5e8db91e5f27ea6cfc6415677c834d34
|
||||
|
@ -7,4 +8,4 @@
|
|||
4a0000eff19123a0b3087a0f059a5e0c10d7437756002077686f27732d746861742d706f6b656d6f6e2d697427732d70696b616368752102fb1ed40000,45d8a2b4f512f4eb8bf6409454975235343d4b40
|
||||
4a0000eff19123a0b3087a0f059a5e0c10d7437756002162726f636b2d74726965732d746f2d736176652d736861796d696e2d7573696e670341a2c40000,2c9d219c6ce4596cffb250950c3d94938f8df91b
|
||||
4a0000eff19123a0b3087a0f059a5e0c10d74377560021706d64322d6578706c6f726572732d6f662d736b792d706c61797468726f7567680315ca790000,be33e079423884c11969b3fd8f7586dee8e3a73f
|
||||
4a0000eff19123a0b3087a0f059a5e0c10d74377560023706d64322d6578706c6f726572732d6f662d736b792d706c61797468726f7567682d320315ca770000,0efd1fd5225df823ebe6bc2196d405db745f291c
|
||||
4a0000eff19123a0b3087a0f059a5e0c10d74377560021706f6b656d6f6e2d756e6974652d736561736f6e2d322d286c6f6c6e6f7065212903d81d740000,236c0428226580eaffee6beed1b89fdff7c4e582
|
|
|
@ -1,3 +1,4 @@
|
|||
K,
|
||||
4b00000324e40fcb63a0b517a3660645e9bd99244a030bc8a50000,0000000001312d00
|
||||
4b000023415fc7ba8a470f0cdf4a66bffacd5ba97902c6e2aa0126,0000000001ea252a
|
||||
4b000023415fc7ba8a470f0cdf4a66bffacd5ba97902c6e7d20151,0000000005be6f7e
|
|
|
@ -1,3 +1,4 @@
|
|||
L,
|
||||
4c000059610000,04c7d5e2360f10ab8e28d5d831abb29b72cea3a8
|
||||
4c0000596d0000,04c7d5e2360f10ab8e28d5d831abb29b72cea3a8
|
||||
4c00029e100000,a467b70b0a9ddba924d0a115206fe7c1cb25a346
|
|
4
resources/undo.csv → testdata/M.csv
vendored
4
resources/undo.csv → testdata/M.csv
vendored
File diff suppressed because one or more lines are too long
1
resources/tx_num.csv → testdata/N.csv
vendored
1
resources/tx_num.csv → testdata/N.csv
vendored
|
@ -1,3 +1,4 @@
|
|||
N,
|
||||
4e00000031a2e262d60074f07330d7187907e5b02be8f9b3c60cdc03d776314912,01376ce8
|
||||
4e0000004e91edda0f9cd3bcef9565a31e6bbbd34c731483e03ec7d8819158ac30,030ee002
|
||||
4e0000008070865693cd82ed0f59896e34973adbff0583fb8a1293919591446075,03518017
|
|
|
@ -1,3 +1,4 @@
|
|||
O,
|
||||
4f00222fbd00162aa70000,c78ac4c326cd43cdc0c844b7cea13659449ab3e40015746573742d70686f746f2d7374726173626f757267
|
||||
4f002230a700162f600000,ebf95f7fdb89db5467bb1b88ea3b0f0f7ee5ce360003636e63
|
||||
4f002230e3001630960000,a6f91a86837ab84a4cf0d2dcbe94704a528cf820000f776f6e646572776f6d616e31393933
|
|
|
@ -1,3 +1,4 @@
|
|||
P,
|
||||
50000100,a51d5c567412654e6d741114fea6fb851dec73800004831f
|
||||
50000101,11158037afca9c2efabc3dff55e352bf1f5634c50004831f
|
||||
50000102,a4a575934de77d8ec8589595d8cd91857e3cf5ba0004831f
|
|
|
@ -1,3 +1,4 @@
|
|||
Q,
|
||||
5100002e5002000059610000,04c7d5e2360f10ab8e28d5d831abb29b72cea3a8000c697473616469736173746572
|
||||
5100002e52020000596d0000,04c7d5e2360f10ab8e28d5d831abb29b72cea3a8000c697473616469736173746572
|
||||
5100005d570200025e360000,32d4fc78396c239f5c1a0a041242eebb2636750900036f6e65
|
|
|
@ -1,3 +1,4 @@
|
|||
R,
|
||||
520100162aa70000,00021b3dc78ac4c326cd43cdc0c844b7cea13659449ab3e40015746573742d70686f746f2d7374726173626f757267
|
||||
520100162f600000,00021c27ebf95f7fdb89db5467bb1b88ea3b0f0f7ee5ce360003636e63
|
||||
5201001630960000,00021c63a6f91a86837ab84a4cf0d2dcbe94704a528cf820000f776f6e646572776f6d616e31393933
|
|
1
resources/active_amount.csv → testdata/S.csv
vendored
1
resources/active_amount.csv → testdata/S.csv
vendored
|
@ -1,3 +1,4 @@
|
|||
S,
|
||||
53000000a420c44374f4f399ab4807fa1901eefc8701000e94ad0297ec210000,00000000000f4240
|
||||
53000000c27eef5ea69e0d73f118826c7e326bb46901000773de00371d660000,000000001dcd6500
|
||||
5300000110e40894573f528c393fbcec7a472ec85301000d069c01516b320000,0000000000989680
|
|
1
resources/tx_count.csv → testdata/T.csv
vendored
1
resources/tx_count.csv → testdata/T.csv
vendored
|
@ -1,3 +1,4 @@
|
|||
T,
|
||||
5400000000,00000001
|
||||
5400000001,00000002
|
||||
5400000002,00000003
|
|
1
resources/repost.csv → testdata/V.csv
vendored
1
resources/repost.csv → testdata/V.csv
vendored
|
@ -1,3 +1,4 @@
|
|||
V,
|
||||
56000009ca6e0caaaef16872b4bd4f6f1b8c2363e2,dbdfb6cd5e83baf342eaab8b19662ed0c71aae9a
|
||||
56000011884f49bd8fcd16444dd44452a4e007f156,799c1f31da3021972570a9fafaa838fec36aecc4
|
||||
560000140cfb01f26c9177e99831ef05b61981852a,0f7f89b3fd788c928104fa7406b8c34c77edaba4
|
|
|
@ -1,3 +1,4 @@
|
|||
W,
|
||||
5700003eb3f3f17af2cf79b286dc1952f6c3df2e1d03947d150000,4dd814e8ae0fc8feead86bf6c723bcc45b224c44
|
||||
570000997ae50674ed318475cb207bf1902e01de7b02d931f70000,70e7073d180053a3e8815116e68466b8a9819eaa
|
||||
570000997ae50674ed318475cb207bf1902e01de7b031b5d5b0000,1d89ae62063d38c9ad5833721af2a2a8670a60ff
|
|
1
resources/tx_hash.csv → testdata/X.csv
vendored
1
resources/tx_hash.csv → testdata/X.csv
vendored
|
@ -1,3 +1,4 @@
|
|||
X,
|
||||
5800000000,cc59e59ff97ac092b55e423aa5495151ed6fb80570a5bb78cd5bd1c3821c21b8
|
||||
5800000001,ba888e2f9c037f831046f8ad09f6d378f79c728d003b177a64d29621f481da5d
|
||||
5800000002,09d8734d81b5f2eb1b653caf17491544ddfbc72f2f4c0c3f22a3362db5ba9d47
|
|
11
testdata/Y.csv
vendored
Normal file
11
testdata/Y.csv
vendored
Normal file
File diff suppressed because one or more lines are too long
3
resources/channel_count.csv → testdata/Z.csv
vendored
3
resources/channel_count.csv → testdata/Z.csv
vendored
|
@ -1,7 +1,8 @@
|
|||
Z,
|
||||
5a00009d4f7ab04598c25390fe543aba137c149233,00000000
|
||||
5a00009f35397ada0476b04c67978ad081b50833ed,00000001
|
||||
5a0000cbef248847373c999de142bc2d7da4d01410,00000001
|
||||
5a0000eff19123a0b3087a0f059a5e0c10d7437756,00000017
|
||||
5a0000eff19123a0b3087a0f059a5e0c10d7437756,00000018
|
||||
5a0000f3ebc97800e26f68f0c45dfd05bf54489190,00000006
|
||||
5a000191553161252e30656c931e0dffb98d8f97f8,00000001
|
||||
5a000201be81dc3e91efb767f1e61c5fb7e91893d7,00000008
|
|
|
@ -1,3 +1,4 @@
|
|||
a,
|
||||
6100000324e40fcb63a0b517a3660645e9bd99244a,0000000001312d00
|
||||
6100000e474ea919000015b80ccb7f4e6cc73e2f52,0000000000000000
|
||||
61000023415fc7ba8a470f0cdf4a66bffacd5ba979,000000005c18bd6f
|
||||
|
@ -7,4 +8,4 @@
|
|||
6100002ea3970f0f658f50dbdb27abbb716ed01c80,0000000000000000
|
||||
610000345ff10a01448c42bf1a89a4399e8b82c1aa,0000000001ceef65
|
||||
610000437bd840e2463d3dfc8c80e66e2585dd02b3,00000000000eb7a7
|
||||
61000063d2be270f861565ffd8f07a118ea9dff179,000000000bebc200
|
||||
6100004cd6a62be5ccbfbef3ffca345c8f58595f87,000000001feadeb0
|
|
1
resources/block_txs.csv → testdata/b.csv
vendored
1
resources/block_txs.csv → testdata/b.csv
vendored
|
@ -1,3 +1,4 @@
|
|||
b,
|
||||
6200000001,ba888e2f9c037f831046f8ad09f6d378f79c728d003b177a64d29621f481da5d
|
||||
6200000002,09d8734d81b5f2eb1b653caf17491544ddfbc72f2f4c0c3f22a3362db5ba9d47
|
||||
6200000003,e285dbf24334585b9a924536a717160ee185a86d1eeb7b19684538685eca761a
|
|
1
resources/hashx_utxo.csv → testdata/h.csv
vendored
1
resources/hashx_utxo.csv → testdata/h.csv
vendored
|
@ -1,3 +1,4 @@
|
|||
h,
|
||||
680000003101376ce80000,6aabbc5b0b56a74c30b79c
|
||||
680000004e030ee0020001,1aac16a91b039bc0973f24
|
||||
6800000080035180170001,e78d6cdf8bc312467c990e
|
|
2
testdata/s.csv
vendored
Normal file
2
testdata/s.csv
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
s,
|
||||
73,9c89283ba0f3227f6c03b70216b9f665f0118d5e0fa729cedf4fb34d6a34f46300105bec03f782718ccd27260ce980e7d3d0b5c5f7be1517027b68104109128a34d1cc562f32008e00105bef0014f734000700105befffffffffffffffff00105bec
|
|
5
resources/utxo.csv → testdata/u.csv
vendored
5
resources/utxo.csv → testdata/u.csv
vendored
|
@ -1,10 +1,11 @@
|
|||
u,
|
||||
7500000004c2acd7268f72f401bcc11b0001,0000000000212e82
|
||||
75000000fc2b16dafcee68a1010355e30000,000000000bebc200
|
||||
75000005cd13786859b616e003d40df80001,000000000006defc
|
||||
7500000854f26820c51f4d6002f0d04a0000,0000000001312d00
|
||||
7500000be04be6fe79c7e46e00caad5b0000,00000000000186a0
|
||||
7500000d757125d9ffc0ee7502e0768d0001,0000000000093576
|
||||
7500000f85227afb8de484b2018f2c160001,00000000047868c0
|
||||
750000100b902fa2a25c2f7c02610ba00000,00000000000186a0
|
||||
7500001173f64a88299d433803e9f5ce0001,00000000001afe7d
|
||||
75000012534ec2cd7e0936c0021ee1360001,00000000000eb1a8
|
||||
75000012b28ece33b988feb703a5b00f0000,00000000017d7840
|
||||
75000012b28ece33b988feb703a5b0b30001,0000000002faf080
|
|
3
resources/hashx_history.csv → testdata/x.csv
vendored
3
resources/hashx_history.csv → testdata/x.csv
vendored
|
@ -1,10 +1,11 @@
|
|||
x,
|
||||
7800000004c2acd7268f72f4000d9775,1bc1bc01
|
||||
7800000009c71d9f181747b900000000,aecabb00d8dabb00
|
||||
780000006f2a6a1b5fba57d900000000,49a04a032da14a03
|
||||
78000000723d80469472f4e300000000,f93c8c01ed3f8c01
|
||||
78000000fc2b16dafcee68a1000c30c5,e3550301
|
||||
78000001a2d46d0ed0296f3400000000,df949e018d979e01
|
||||
78000002259f458754ab822900000000,293cde037c3dde03
|
||||
78000002beb8caef86cbf6d300000000,4c158400db158400
|
||||
78000002bf30e17c155022a000000000,d32e4c00b0a79000
|
||||
78000002d3344ae355d63a6c00000000,6840f401a842f401
|
||||
780000033ac11d9bc4cf100a00000000,8144fe0140bcd602
|
|
Loading…
Reference in a new issue