parent
077e637093
commit
bb9fce02cb
|
@ -44,6 +44,7 @@ import (
|
||||||
"github.com/trezor/blockbook/bchain/coins/ravencoin"
|
"github.com/trezor/blockbook/bchain/coins/ravencoin"
|
||||||
"github.com/trezor/blockbook/bchain/coins/ritocoin"
|
"github.com/trezor/blockbook/bchain/coins/ritocoin"
|
||||||
"github.com/trezor/blockbook/bchain/coins/snowgem"
|
"github.com/trezor/blockbook/bchain/coins/snowgem"
|
||||||
|
"github.com/trezor/blockbook/bchain/coins/trezarcoin"
|
||||||
"github.com/trezor/blockbook/bchain/coins/unobtanium"
|
"github.com/trezor/blockbook/bchain/coins/unobtanium"
|
||||||
"github.com/trezor/blockbook/bchain/coins/vertcoin"
|
"github.com/trezor/blockbook/bchain/coins/vertcoin"
|
||||||
"github.com/trezor/blockbook/bchain/coins/viacoin"
|
"github.com/trezor/blockbook/bchain/coins/viacoin"
|
||||||
|
@ -116,6 +117,7 @@ func init() {
|
||||||
BlockChainFactories["Omotenashicoin"] = omotenashicoin.NewOmotenashiCoinRPC
|
BlockChainFactories["Omotenashicoin"] = omotenashicoin.NewOmotenashiCoinRPC
|
||||||
BlockChainFactories["Omotenashicoin Testnet"] = omotenashicoin.NewOmotenashiCoinRPC
|
BlockChainFactories["Omotenashicoin Testnet"] = omotenashicoin.NewOmotenashiCoinRPC
|
||||||
BlockChainFactories["BitZeny"] = bitzeny.NewBitZenyRPC
|
BlockChainFactories["BitZeny"] = bitzeny.NewBitZenyRPC
|
||||||
|
BlockChainFactories["Trezarcoin"] = trezarcoin.NewTrezarcoinRPC
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetCoinNameFromConfig gets coin name and coin shortcut from config file
|
// GetCoinNameFromConfig gets coin name and coin shortcut from config file
|
||||||
|
|
|
@ -0,0 +1,63 @@
|
||||||
|
package trezarcoin
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/martinboehm/btcd/wire"
|
||||||
|
"github.com/martinboehm/btcutil/chaincfg"
|
||||||
|
"github.com/trezor/blockbook/bchain"
|
||||||
|
"github.com/trezor/blockbook/bchain/coins/btc"
|
||||||
|
)
|
||||||
|
|
||||||
|
// magic numbers
|
||||||
|
const (
|
||||||
|
MainnetMagic wire.BitcoinNet = 0xfddbefe4
|
||||||
|
)
|
||||||
|
|
||||||
|
// chain parameters
|
||||||
|
var (
|
||||||
|
MainNetParams chaincfg.Params
|
||||||
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
MainNetParams = chaincfg.MainNetParams
|
||||||
|
MainNetParams.Net = MainnetMagic
|
||||||
|
MainNetParams.PubKeyHashAddrID = []byte{66}
|
||||||
|
MainNetParams.ScriptHashAddrID = []byte{8}
|
||||||
|
}
|
||||||
|
|
||||||
|
// TrezarcoinParser handle
|
||||||
|
type TrezarcoinParser struct {
|
||||||
|
*btc.BitcoinParser
|
||||||
|
baseparser *bchain.BaseParser
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewTrezarcoinParser returns new TrezarcoinParser instance
|
||||||
|
func NewTrezarcoinParser(params *chaincfg.Params, c *btc.Configuration) *TrezarcoinParser {
|
||||||
|
return &TrezarcoinParser{
|
||||||
|
BitcoinParser: btc.NewBitcoinParser(params, c),
|
||||||
|
baseparser: &bchain.BaseParser{},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetChainParams returns network parameters
|
||||||
|
func GetChainParams(chain string) *chaincfg.Params {
|
||||||
|
if !chaincfg.IsRegistered(&MainNetParams) {
|
||||||
|
err := chaincfg.Register(&MainNetParams)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
switch chain {
|
||||||
|
default:
|
||||||
|
return &MainNetParams
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PackTx packs transaction to byte array using protobuf
|
||||||
|
func (p *TrezarcoinParser) PackTx(tx *bchain.Tx, height uint32, blockTime int64) ([]byte, error) {
|
||||||
|
return p.baseparser.PackTx(tx, height, blockTime)
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnpackTx unpacks transaction from protobuf byte array
|
||||||
|
func (p *TrezarcoinParser) UnpackTx(buf []byte) (*bchain.Tx, uint32, error) {
|
||||||
|
return p.baseparser.UnpackTx(buf)
|
||||||
|
}
|
|
@ -0,0 +1,71 @@
|
||||||
|
// +build unittest
|
||||||
|
|
||||||
|
package trezarcoin
|
||||||
|
|
||||||
|
import (
|
||||||
|
"encoding/hex"
|
||||||
|
"os"
|
||||||
|
"reflect"
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/martinboehm/btcutil/chaincfg"
|
||||||
|
"github.com/trezor/blockbook/bchain/coins/btc"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestMain(m *testing.M) {
|
||||||
|
c := m.Run()
|
||||||
|
chaincfg.ResetParams()
|
||||||
|
os.Exit(c)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Test_GetAddrDescFromAddress_Mainnet(t *testing.T) {
|
||||||
|
type args struct {
|
||||||
|
address string
|
||||||
|
}
|
||||||
|
tests := []struct {
|
||||||
|
name string
|
||||||
|
args args
|
||||||
|
want string
|
||||||
|
wantErr bool
|
||||||
|
}{
|
||||||
|
{
|
||||||
|
name: "pubkeyhash1",
|
||||||
|
args: args{address: "TovkYkEtp73t4KYEJxMxXhBMKVdDPmr7Hv"},
|
||||||
|
want: "76a914a05ddd8e3268846a3e7a4ddf505adb942cc6557488ac",
|
||||||
|
wantErr: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "pubkeyhash2",
|
||||||
|
args: args{address: "TuEoL199onxdg7z69D12AmhMnEEAH742Ro"},
|
||||||
|
want: "76a914daa04d741763566e77a9df316f6cf755e8e77d3088ac",
|
||||||
|
wantErr: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "scripthash1",
|
||||||
|
args: args{address: "4Nx2k3S57z4PbUoP9M6BpQBCpizn8critB"},
|
||||||
|
want: "a9146568dc26eb0054c19042114cae9cff56e816a06c87",
|
||||||
|
wantErr: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "scripthash2",
|
||||||
|
args: args{address: "4XvMi1G8rXtgZnz5G8S9yA3QzTtaC8TLrY"},
|
||||||
|
want: "a914c7d0fdbdc654f7154b014f83b9d607f3adfbf4f887",
|
||||||
|
wantErr: false,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
parser := NewTrezarcoinParser(GetChainParams("main"), &btc.Configuration{})
|
||||||
|
|
||||||
|
for _, tt := range tests {
|
||||||
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
|
got, err := parser.GetAddrDescFromAddress(tt.args.address)
|
||||||
|
if (err != nil) != tt.wantErr {
|
||||||
|
t.Errorf("GetAddrDescFromAddress() error = %v, wantErr %v", err, tt.wantErr)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
h := hex.EncodeToString(got)
|
||||||
|
if !reflect.DeepEqual(h, tt.want) {
|
||||||
|
t.Errorf("GetAddrDescFromAddress() = %v, want %v", h, tt.want)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,114 @@
|
||||||
|
package trezarcoin
|
||||||
|
|
||||||
|
import (
|
||||||
|
"encoding/json"
|
||||||
|
|
||||||
|
"github.com/golang/glog"
|
||||||
|
"github.com/juju/errors"
|
||||||
|
"github.com/trezor/blockbook/bchain"
|
||||||
|
"github.com/trezor/blockbook/bchain/coins/btc"
|
||||||
|
)
|
||||||
|
|
||||||
|
// TrezarcoinRPC is an interface to JSON-RPC bitcoind service.
|
||||||
|
type TrezarcoinRPC struct {
|
||||||
|
*btc.BitcoinRPC
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewTrezarcoinRPC returns new TrezarcoinRPC instance.
|
||||||
|
func NewTrezarcoinRPC(config json.RawMessage, pushHandler func(bchain.NotificationType)) (bchain.BlockChain, error) {
|
||||||
|
b, err := btc.NewBitcoinRPC(config, pushHandler)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
s := &TrezarcoinRPC{
|
||||||
|
b.(*btc.BitcoinRPC),
|
||||||
|
}
|
||||||
|
s.RPCMarshaler = btc.JSONMarshalerV1{}
|
||||||
|
s.ChainConfig.SupportsEstimateFee = false
|
||||||
|
|
||||||
|
return s, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Initialize initializes TrezarcoinRPC instance.
|
||||||
|
func (b *TrezarcoinRPC) Initialize() error {
|
||||||
|
ci, err := b.GetChainInfo()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
chainName := ci.Chain
|
||||||
|
|
||||||
|
glog.Info("Chain name ", chainName)
|
||||||
|
params := GetChainParams(chainName)
|
||||||
|
|
||||||
|
// always create parser
|
||||||
|
b.Parser = NewTrezarcoinParser(params, b.ChainConfig)
|
||||||
|
|
||||||
|
// parameters for getInfo request
|
||||||
|
b.Testnet = false
|
||||||
|
b.Network = "livenet"
|
||||||
|
|
||||||
|
glog.Info("rpc: block chain ", params.Name)
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetBlock returns block with given hash.
|
||||||
|
func (f *TrezarcoinRPC) GetBlock(hash string, height uint32) (*bchain.Block, error) {
|
||||||
|
var err error
|
||||||
|
if hash == "" && height > 0 {
|
||||||
|
hash, err = f.GetBlockHash(height)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
glog.V(1).Info("rpc: getblock (verbosity=1) ", hash)
|
||||||
|
|
||||||
|
res := btc.ResGetBlockThin{}
|
||||||
|
req := btc.CmdGetBlock{Method: "getblock"}
|
||||||
|
req.Params.BlockHash = hash
|
||||||
|
req.Params.Verbosity = 1
|
||||||
|
err = f.Call(&req, &res)
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
return nil, errors.Annotatef(err, "hash %v", hash)
|
||||||
|
}
|
||||||
|
if res.Error != nil {
|
||||||
|
return nil, errors.Annotatef(res.Error, "hash %v", hash)
|
||||||
|
}
|
||||||
|
|
||||||
|
txs := make([]bchain.Tx, 0, len(res.Result.Txids))
|
||||||
|
for _, txid := range res.Result.Txids {
|
||||||
|
tx, err := f.GetTransaction(txid)
|
||||||
|
if err != nil {
|
||||||
|
if err == bchain.ErrTxNotFound {
|
||||||
|
glog.Errorf("rpc: getblock: skipping transanction in block %s due error: %s", hash, err)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
txs = append(txs, *tx)
|
||||||
|
}
|
||||||
|
block := &bchain.Block{
|
||||||
|
BlockHeader: res.Result.BlockHeader,
|
||||||
|
Txs: txs,
|
||||||
|
}
|
||||||
|
return block, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetTransactionForMempool returns a transaction by the transaction ID.
|
||||||
|
// It could be optimized for mempool, i.e. without block time and confirmations
|
||||||
|
func (f *TrezarcoinRPC) GetTransactionForMempool(txid string) (*bchain.Tx, error) {
|
||||||
|
return f.GetTransaction(txid)
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetMempoolEntry returns mempool data for given transaction
|
||||||
|
func (f *TrezarcoinRPC) GetMempoolEntry(txid string) (*bchain.MempoolEntry, error) {
|
||||||
|
return nil, errors.New("GetMempoolEntry: not implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
func isErrBlockNotFound(err *bchain.RPCError) bool {
|
||||||
|
return err.Message == "Block not found" ||
|
||||||
|
err.Message == "Block height out of range"
|
||||||
|
}
|
|
@ -0,0 +1,70 @@
|
||||||
|
{
|
||||||
|
"coin": {
|
||||||
|
"name": "Trezarcoin",
|
||||||
|
"shortcut": "TZC",
|
||||||
|
"label": "Trezarcoin",
|
||||||
|
"alias": "trezarcoin"
|
||||||
|
},
|
||||||
|
"ports": {
|
||||||
|
"backend_rpc": 8096,
|
||||||
|
"backend_message_queue": 38396,
|
||||||
|
"blockbook_internal": 9096,
|
||||||
|
"blockbook_public": 9196
|
||||||
|
},
|
||||||
|
"ipc": {
|
||||||
|
"rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}",
|
||||||
|
"rpc_user": "rpc",
|
||||||
|
"rpc_pass": "rpc",
|
||||||
|
"rpc_timeout": 25,
|
||||||
|
"message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}"
|
||||||
|
},
|
||||||
|
"backend": {
|
||||||
|
"package_name": "backend-trezarcoin",
|
||||||
|
"package_revision": "satoshilabs-1",
|
||||||
|
"system_user": "trezarcoin",
|
||||||
|
"version": "2.1.1",
|
||||||
|
"binary_url": "https://github.com/TrezarCoin/TrezarCoin/releases/download/v2.1.1.0/trezarcoin-2.1.1-x86_64-linux-gnu.tar.gz",
|
||||||
|
"verification_type": "sha256",
|
||||||
|
"verification_source": "4b41c4fecf36a870d6bb7298d85b211f61d9f2bcc6c1bef3167f3ef772bc6fdf",
|
||||||
|
"extract_command": "tar -C backend --strip 1 -xf",
|
||||||
|
"exclude_files": [
|
||||||
|
"bin/trezarcoin-qt"
|
||||||
|
],
|
||||||
|
"exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/trezarcoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid",
|
||||||
|
"logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log",
|
||||||
|
"postinst_script_template": "",
|
||||||
|
"service_type": "forking",
|
||||||
|
"service_additional_params_template": "",
|
||||||
|
"protect_memory": true,
|
||||||
|
"mainnet": true,
|
||||||
|
"server_config_file": "bitcoin_like.conf",
|
||||||
|
"client_config_file": "bitcoin_like_client.conf",
|
||||||
|
"additional_params": {
|
||||||
|
"whitelist": "127.0.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"blockbook": {
|
||||||
|
"package_name": "blockbook-trezarcoin",
|
||||||
|
"system_user": "blockbook-trezarcoin",
|
||||||
|
"internal_binding_template": ":{{.Ports.BlockbookInternal}}",
|
||||||
|
"public_binding_template": ":{{.Ports.BlockbookPublic}}",
|
||||||
|
"explorer_url": "",
|
||||||
|
"additional_params": "",
|
||||||
|
"block_chain": {
|
||||||
|
"parse": true,
|
||||||
|
"mempool_workers": 8,
|
||||||
|
"mempool_sub_workers": 2,
|
||||||
|
"block_addresses_to_keep": 300,
|
||||||
|
"xpub_magic": 27108450,
|
||||||
|
"slip44": 232,
|
||||||
|
"additional_params": {
|
||||||
|
"fiat_rates": "coingecko",
|
||||||
|
"fiat_rates_params": "{\"url\": \"https://api.coingecko.com/api/v3\", \"coin\": \"trezarcoin\", \"periodSeconds\": 60}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"package_maintainer": "IT",
|
||||||
|
"package_maintainer_email": "it@satoshilabs.com"
|
||||||
|
}
|
||||||
|
}
|
|
@ -44,6 +44,7 @@
|
||||||
| Unobtanium | 9092 | 9192 | 65535 | 38392 |
|
| Unobtanium | 9092 | 9192 | 65535 | 38392 |
|
||||||
| Omotenashicoin | 9094 | 9194 | 8094 | 38394 |
|
| Omotenashicoin | 9094 | 9194 | 8094 | 38394 |
|
||||||
| BitZeny | 9095 | 9195 | 8095 | 38395 |
|
| BitZeny | 9095 | 9195 | 8095 | 38395 |
|
||||||
|
| Trezarcoin | 9096 | 9196 | 8096 | 38396 |
|
||||||
| Bitcoin Signet | 19020 | 19120 | 18020 | 48320 |
|
| Bitcoin Signet | 19020 | 19120 | 18020 | 48320 |
|
||||||
| Bitcoin Testnet | 19030 | 19130 | 18030 | 48330 |
|
| Bitcoin Testnet | 19030 | 19130 | 18030 | 48330 |
|
||||||
| Bitcoin Cash Testnet | 19031 | 19131 | 18031 | 48331 |
|
| Bitcoin Cash Testnet | 19031 | 19131 | 18031 | 48331 |
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
"blockHash": "9c22576a9defad9cc5cf27ed479c2175d4eb396d1b7706bfd5066add9b0366d1",
|
||||||
|
"blockHeight": 1303796,
|
||||||
|
"blockTime": 1584710909,
|
||||||
|
"blockTxs": [
|
||||||
|
"c35f4d078ec352096c1f83908f87e4fbb9553f264b0ba139cd7ca82dc060105a"
|
||||||
|
],
|
||||||
|
"txDetails": {
|
||||||
|
"c35f4d078ec352096c1f83908f87e4fbb9553f264b0ba139cd7ca82dc060105a": {
|
||||||
|
"txid": "c35f4d078ec352096c1f83908f87e4fbb9553f264b0ba139cd7ca82dc060105a",
|
||||||
|
"version": 1,
|
||||||
|
"vin": [
|
||||||
|
{
|
||||||
|
"coinbase": "03f4e41304c9c4745e08810078cef13400007a657267706f6f6c2e636f6d00",
|
||||||
|
"sequence": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"vout": [
|
||||||
|
{
|
||||||
|
"value": 100.00000000,
|
||||||
|
"n": 0,
|
||||||
|
"scriptPubKey": {
|
||||||
|
"hex": "21036842117fa1b85649c3e2e84c759387d5670051213c61764e2a5bbf55260c2f3bac"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hex": "01000000fdc4745e010000000000000000000000000000000000000000000000000000000000000000ffffffff1f03f4e41304c9c4745e08810078cef13400007a657267706f6f6c2e636f6d00000000000100e1f505000000002321036842117fa1b85649c3e2e84c759387d5670051213c61764e2a5bbf55260c2f3bac00000000",
|
||||||
|
"time": 1584710909,
|
||||||
|
"blocktime": 1584710909
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,103 @@
|
||||||
|
{
|
||||||
|
"connectBlocks": {
|
||||||
|
"syncRanges": [
|
||||||
|
{ "lower": 1303776, "upper": 1303796 }
|
||||||
|
],
|
||||||
|
"blocks": {
|
||||||
|
"1303796": {
|
||||||
|
"hash": "9c22576a9defad9cc5cf27ed479c2175d4eb396d1b7706bfd5066add9b0366d1",
|
||||||
|
"height": 1503796,
|
||||||
|
"noTxs": 1,
|
||||||
|
"txDetails": [
|
||||||
|
{
|
||||||
|
"txid": "c35f4d078ec352096c1f83908f87e4fbb9553f264b0ba139cd7ca82dc060105a",
|
||||||
|
"version": 1,
|
||||||
|
"vin": [
|
||||||
|
{
|
||||||
|
"coinbase": "03f4e41304c9c4745e08810078cef13400007a657267706f6f6c2e636f6d00",
|
||||||
|
"sequence": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"vout": [
|
||||||
|
{
|
||||||
|
"value": 100.00000000,
|
||||||
|
"n": 0,
|
||||||
|
"scriptPubKey": {
|
||||||
|
"hex": "21036842117fa1b85649c3e2e84c759387d5670051213c61764e2a5bbf55260c2f3bac"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hex": "01000000fdc4745e010000000000000000000000000000000000000000000000000000000000000000ffffffff1f03f4e41304c9c4745e08810078cef13400007a657267706f6f6c2e636f6d00000000000100e1f505000000002321036842117fa1b85649c3e2e84c759387d5670051213c61764e2a5bbf55260c2f3bac00000000",
|
||||||
|
"time": 1584710909,
|
||||||
|
"blocktime": 1584710909
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"1303793": {
|
||||||
|
"noTxs": 1,
|
||||||
|
"height": 1303793,
|
||||||
|
"hash": "354bbb65711ed4dc62a0277118e40e4c70a6dd16a2eb84e4127e004e241616c0",
|
||||||
|
"txDetails": [
|
||||||
|
{
|
||||||
|
"txid": "3ec26d343d09ee8a43b2c55bbe861302ec4cd42412b145562a4e39ea0a9b3923",
|
||||||
|
"version": 1,
|
||||||
|
"vin": [
|
||||||
|
{
|
||||||
|
"coinbase": "03f1e4130455c4745e088100786e600300007a657267706f6f6c2e636f6d00",
|
||||||
|
"sequence": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"vout": [
|
||||||
|
{
|
||||||
|
"value": 100.00000000,
|
||||||
|
"n": 0,
|
||||||
|
"scriptPubKey": {
|
||||||
|
"hex": "21036842117fa1b85649c3e2e84c759387d5670051213c61764e2a5bbf55260c2f3bac"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"hex": "0100000060c4745e010000000000000000000000000000000000000000000000000000000000000000ffffffff1f03f1e4130455c4745e088100786e600300007a657267706f6f6c2e636f6d00000000000100e1f505000000002321036842117fa1b85649c3e2e84c759387d5670051213c61764e2a5bbf55260c2f3bac00000000",
|
||||||
|
"time": 1584710752,
|
||||||
|
"blocktime": 1584710752
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"handleFork": {
|
||||||
|
"syncRanges": [
|
||||||
|
{
|
||||||
|
"lower": 1303790,
|
||||||
|
"upper": 1303796
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fakeBlocks": {
|
||||||
|
"1303794": {
|
||||||
|
"height": 1303794,
|
||||||
|
"hash": "c669716c44eb8ec04ba57210197ec55796f6ca2d84a39aaac37e5609e73a4da1"
|
||||||
|
},
|
||||||
|
"1303795": {
|
||||||
|
"height": 1303795,
|
||||||
|
"hash": "24be474670ce1db3c34c5c4d077aafba14ba6d406023037eb445b3996cbe8bb1"
|
||||||
|
},
|
||||||
|
"1303796": {
|
||||||
|
"height": 1303796,
|
||||||
|
"hash": "8919bab7d23acb214e841ebe24bd7c52b06774abc1ac9d4685c4ef220aed7dde"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"realBlocks": {
|
||||||
|
"1303794": {
|
||||||
|
"height": 1303794,
|
||||||
|
"hash": "186daaeb62fa64179e95f7d8941102b1f96f71aee8fa83175ddbdb276871a710"
|
||||||
|
},
|
||||||
|
"1303795": {
|
||||||
|
"height": 1303795,
|
||||||
|
"hash": "2e26261bbd964f5f44946a44fb0269802860ab65163a4edb6dd6da54ab9719e0"
|
||||||
|
},
|
||||||
|
"1303796": {
|
||||||
|
"height": 1303796,
|
||||||
|
"hash": "9c22576a9defad9cc5cf27ed479c2175d4eb396d1b7706bfd5066add9b0366d1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -225,5 +225,10 @@
|
||||||
"rpc": ["GetBlock", "GetBlockHash", "GetTransaction", "GetTransactionForMempool", "MempoolSync",
|
"rpc": ["GetBlock", "GetBlockHash", "GetTransaction", "GetTransactionForMempool", "MempoolSync",
|
||||||
"EstimateSmartFee", "EstimateFee", "GetBestBlockHash", "GetBestBlockHeight"],
|
"EstimateSmartFee", "EstimateFee", "GetBestBlockHash", "GetBestBlockHeight"],
|
||||||
"sync": ["ConnectBlocksParallel", "ConnectBlocks"]
|
"sync": ["ConnectBlocksParallel", "ConnectBlocks"]
|
||||||
|
},
|
||||||
|
"trezarcoin": {
|
||||||
|
"rpc": ["GetBlock", "GetBlockHash", "GetTransaction", "GetTransactionForMempool", "MempoolSync",
|
||||||
|
"EstimateFee", "GetBestBlockHash", "GetBestBlockHeight", "GetBlockHeader"],
|
||||||
|
"sync": ["ConnectBlocksParallel", "ConnectBlocks", "HandleFork"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue