Giter VIP home page Giter VIP logo

gxb-core's People

Contributors

alan52 avatar bijianing97 avatar dev25519 avatar hanawabanana avatar lanhaoxiang avatar lelecommit avatar netcac avatar rootkitkiller avatar samlior avatar tututt avatar wangweix avatar xzshinan avatar yrming avatar zuuluuz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gxb-core's Issues

Build error 78%

‘account_balance_locked_object’ was not declared in this scope
screen shot 2017-11-10 at 23 23 58

built error

ywt@ywt-vm:/gxb-core/build$ make
[ 0%] Built target wasm
[ 0%] Built target ast
[ 1%] Built target asmjs
[ 1%] Built target cfg
[ 4%] Built target passes
[ 4%] Built target support
[ 5%] Built target gxc-s2wasm
[ 6%] Built target binaryen
[ 6%] Built target emscripten-optimizer
[ 6%] Built target project_secp256k1
[ 6%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/base58.cpp.o
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:69:24: error: base class has incomplete type
class CBigNum : public BIGNUM
~~~~~~~^~~~~~
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of 'bignum_st'
typedef struct bignum_st BIGNUM;
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:74:9: error: use of undeclared identifier 'BN_init'
BN_init(this);
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:79:9: error: use of undeclared identifier 'BN_init'
BN_init(this);
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:80:14: error: no matching function for call to 'BN_copy'
if (!BN_copy(this, &b))
^~~~~~~
/usr/include/openssl/bn.h:178:9: note: candidate function not viable: no known conversion from 'CBigNum *' to 'BIGNUM *' (aka 'bignum_st *') for 1st argument
BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b);
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:82:13: error: no matching function for call to 'BN_clear_free'
BN_clear_free(this);
^~~~~~~~~~~~~
/usr/include/openssl/bn.h:177:6: note: candidate function not viable: no known conversion from 'CBigNum *' to 'BIGNUM *' (aka 'bignum_st *') for 1st argument
void BN_clear_free(BIGNUM *a);
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:89:14: error: no matching function for call to 'BN_copy'
if (!BN_copy(this, &b))
^~~~~~~
/usr/include/openssl/bn.h:178:9: note: candidate function not viable: no known conversion from 'CBigNum *' to 'BIGNUM *' (aka 'bignum_st *') for 1st argument
BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b);
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:96:9: error: no matching function for call to 'BN_clear_free'
BN_clear_free(this);
^~~~~~~~~~~~~
/usr/include/openssl/bn.h:177:6: note: candidate function not viable: no known conversion from 'CBigNum *' to 'BIGNUM *' (aka 'bignum_st *') for 1st argument
void BN_clear_free(BIGNUM *a);
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:100:35: error: use of undeclared identifier 'BN_init'
CBigNum(signed char n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:101:35: error: use of undeclared identifier 'BN_init'
CBigNum(short n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:102:35: error: use of undeclared identifier 'BN_init'
CBigNum(int n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:104:35: error: use of undeclared identifier 'BN_init'
CBigNum(int64_t n) { BN_init(this); setint64(n); }
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:105:35: error: use of undeclared identifier 'BN_init'
CBigNum(unsigned char n) { BN_init(this); setulong(n); }
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:106:35: error: use of undeclared identifier 'BN_init'
CBigNum(unsigned short n) { BN_init(this); setulong(n); }
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:107:35: error: use of undeclared identifier 'BN_init'
CBigNum(unsigned int n) { BN_init(this); setulong(n); }
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:109:37: error: use of undeclared identifier 'BN_init'
CBigNum(uint64_t n) { BN_init(this); setuint64(n); }
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:113:9: error: use of undeclared identifier 'BN_init'
BN_init(this);
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:119:14: error: no matching function for call to 'BN_set_word'
if (!BN_set_word(this, n))
^~~~~~~~~~~
/usr/include/openssl/bn.h:230:5: note: candidate function not viable: no known conversion from 'CBigNum *' to 'BIGNUM *' (aka 'bignum_st *') for 1st argument
int BN_set_word(BIGNUM *a, BN_ULONG w);
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:125:16: error: no matching function for call to 'BN_get_word'
return BN_get_word(this);
^~~~~~~~~~~
/usr/include/openssl/bn.h:231:10: note: candidate function not viable: no known conversion from 'const CBigNum *' to 'const BIGNUM *' (aka 'const bignum_st *') for 1st argument
BN_ULONG BN_get_word(const BIGNUM *a);
^
/home/ywt/gxb-core/libraries/fc/src/crypto/base58.cpp:130:16: error: no matching function for call to 'BN_get_word'
return BN_get_word(this);
^~~~~~~~~~~
/usr/include/openssl/bn.h:231:10: note: candidate function not viable: no known conversion from 'const CBigNum *' to 'const BIGNUM *' (aka 'const bignum_st *') for 1st argument
BN_ULONG BN_get_word(const BIGNUM *a);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
libraries/fc/CMakeFiles/fc.dir/build.make:712: recipe for target 'libraries/fc/CMakeFiles/fc.dir/src/crypto/base58.cpp.o' failed
make[2]: *** [libraries/fc/CMakeFiles/fc.dir/src/crypto/base58.cpp.o] Error 1
CMakeFiles/Makefile2:708: recipe for target 'libraries/fc/CMakeFiles/fc.dir/all' failed
make[1]: *** [libraries/fc/CMakeFiles/fc.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
ywt@ywt-vm:
/gxb-core/build$

Ipfs node address?

你好,我在你们的白皮书里看到:

个人信息数据是加密存储在 ipfs 上面的

我想要自己去访问一下这些加密的文件,但我遇到两个问题:

  1. 首先是你们存储这些文件的 ipfs 地址是哪个呢? 另外可否告知一下目录结构 ?

  2. 你们提到使用非对称加密,那这里的 private key 具体是指哪个呢?

构建节点出现的非预期提示。

执行如下命令

./programs/witness_node/witness_node --data-dir=trusted_node --rpc-endpoint=127.0.0.1:28090 --p2p-endpoint=0.0.0.0:6789 --log-file  --partial-operations=true

最终结果

root@735a9e8feb03:/cloud/gxchain# ./programs/witness_node/witness_node --data-dir=trusted_node --rpc-endpoint=127.0.0.1:28090 --p2p-endpoint=0.0.0.0:6789 --log-file  --partial-operations=true
2856863ms th_a       main.cpp:160                  main                 ] Writing new config file at /cloud/gxchain/trusted_node/config.ini
Unable to listen for connections on port 6789, retrying in a few seconds
You can wait for it to become available, or restart this program using
the --p2p-port option to specify another port


Still waiting for port 6789 to become available


Still waiting for port 6789 to become available


Still waiting for port 6789 to become available


Still waiting for port 6789 to become available


Still waiting for port 6789 to become available


Still waiting for port 6789 to become available


Still waiting for port 6789 to become available


Still waiting for port 6789 to become available


Still waiting for port 6789 to become available

以上问题,是否属于正常。若不正常,应当如何处理?如删除缓存文件等解决方式。

Wallet API : get_account_history / get_account_histroy_by_operations return empty

Are there any problems in cli_wallet for calling get_account_history / get_account_histroy_by_operations if I connect it to my local witness_node ws://127.0.0.1:28090? It always return empty.

Params : {"jsonrpc": "2.0", "method": "get_account_history_by_operations", "params": ["1.2.17", [0,1], 1, 5], "id": 2}
Return : {"id":2,"jsonrpc":"2.0","result":{"total_without_operations":5,"details":[]}

I already used any APIs like transfer2, list_account_balances, get_block, etc, and it run well and give the feedbacks.

But the API will return the histories if I connect my cli_wallet to wss://node1.gxb.io.

My cli_wallet Version: v1.0.180929.

build error

/home/gxb-core/libraries/chain/include/graphene/chain/apply_context.hpp:403:60: error: no match for 'operator*' (operand type is 'const graphene::chain::table_id_object')

get_asset_precision contract api

@brief get asset precision by symbol
@param data pointer of symbol
@param  datalen length of symbol
@return -1 fail;  >= 0 success
int64_t get_asset_precision(array_ptr<char> data, size_t datalen)

Error: No available formula with the name "[email protected]"

brew install [email protected] openssl wget git openssl autoconf automake doxygen libtool llvm@4

Error: No available formula with the name "[email protected]"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

你好,执行第二步 Install dependencies 时报了这个错误,网上找不到解决方式;请问下有解决办法吗?
非常感谢。

gxx编译优化

去除合约中未包含的引用,减少编译文件大小,降低开发者部署智能合约的费用

erro While importing wallet

I am doing
import_key some_name some_key
but the wallet_cli return
rec && rec->name == account_name_or_id:
{}
th_a wallet.cpp:602 get_account

Am i missing anything here ? I tried putting quotes to the string too, no luck
My syncing hasnt finished tho, do I need to wait the node finish syncing first ? As the wallet I created from the online wallet just recently (from wallet.gxb.io)

增加智能合约收费方案testcase

  1. 同一块内存占用,从fee_payer A变更为fee_payer B

  2. 跨合约调用的手续费支付方权限控制,不相关调用方不能作为手续费支付对象

其他:待补充

尝试弄懂 operation 的含义 ,发现了安全问题?

你好,今天偶然看到你们的项目,去看了一下你们的 blockchain explorer .
我注意到你们在 graphene 的基础上添加很多 operations.

  1. 可否在之后给出这些 operations 的具体文档呢?

  2. 我有注意到,你们新添加的一些比较重要的 operations 中的 validate 是没有实现的, 这意味着这个 tx 完全没有验证??!! 还是我的理解有问题呢?

Hi, I'm wondering whether the test net of gxchain has been stopped?

After using specific command to connect to the test of gxchain, after downloading all the blocks in test net, when I use "info" command, I got "head_block_num": 3479962, and "head_block_age": "18 days old".
And still it won't increase, who can give me some suggestion on how to resolve this problem, thanks a lot!

query the transaction with txid

qurey the rawtransaction with TXID

witness_node add command line option:

 -txindex
       Maintain a full transaction index, used by the getrawtransaction rpc call (default: false)

DB API:
request:

curl --data '{"jsonrpc": "2.0", "method": "call", "params": [0, "getrawtransaction", ["9e237106f2ccb7681692a25e1e57a45e5708e58b"]], "id": 1}' http://127.0.0.1:28090

response:

{
    "id":1,
    "jsonrpc":"2.0",
    "result":[
        {
            "ref_block_num":56074,
            "ref_block_prefix":950252836,
            "expiration":"2019-02-27T15:32:30",
            "operations":[
                [
                    0,
                    {
                        "fee":{
                            "amount":1210,
                            "asset_id":"1.3.1"
                        },
                        "from":"1.2.19643",
                        "to":"1.2.688063",
                        "amount":{
                            "amount":59970000,
                            "asset_id":"1.3.1"
                        },
                        "memo":{
                            "from":"GXC5XVSDA5R2mrHJFnKpkn7KTtQKcDTyUxES6KZ5tPWCVk9xEYdiB",
                            "to":"GXC7KaX3ANpuENYHtqE5yeH8dHWPiv6HvqyCLhDWH7fow9i6Pm2q9",
                            "nonce":"8792577754148118047",
                            "message":"847fd838d7d557348198aa18de7c801ec95352ac7f3cf09948ed422f78e63985"
                        },
                        "extensions":[

                        ]
                    }
                ]
            ],
            "extensions":[

            ],
            "signatures":[
                "2074416d6889cf1f20a4c6ab68322a10784d06917752aac3a613c3b4a603be48ee0785d42211f16df607049fab2052334e88d47d85819e9b10e5857861a43ee08d"
            ],
            "operation_results":[
                [
                    0,
                    {

                    }
                ]
            ]
        }
    ]
}

Could NOT find WASM (missing: WASM_CLANG WASM_LLC WASM_LLVM_LINK)

mac下编译时,提示以下错误:

-- Could NOT find WASM (missing: WASM_CLANG WASM_LLC WASM_LLVM_LINK)
CMake Error at CMakeModules/wasm.cmake:8 (message):
  No WASM compiler cound be found (make sure WASM_ROOT is set)
Call Stack (most recent call first):
  CMakeLists.txt:161 (include)

不知道如何解决。在网上搜了一些方案,试过后都无法解决。

完整的命令和输出如下:

$ pwd
/Users/freewind/workspace/gxb-core/build

$ cmake -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2o_1 \
               -DOPENSSL_INCLUDE_DIR=/usr/local/Cellar/openssl/1.0.2o_1/include \
               -DOPENSSL_LIBRARIES=/usr/local/Cellar/openssl/1.0.2o_1/lib  \
               -DCMAKE_BUILD_TYPE=Release ..

-- Using custom FindBoost.cmake
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   system
--   filesystem
--   program_options
--   signals
--   serialization
--   chrono
--   unit_test_framework
--   context
--   iostreams
--   locale
-- Configuring gxb-core on OS X
-- binaryen building with -std=c++11
-- binaryen building for platform x86-64
-- binaryen building with -Wall
-- binaryen building with -Werror
-- binaryen building with -Wextra
-- binaryen building with -Wno-unused-parameter
-- binaryen building with -fno-omit-frame-pointer
-- binaryen building with -fPIC
-- binaryen building with -O2
-- binaryen building with -UNDEBUG
-- Could NOT find WASM (missing: WASM_CLANG WASM_LLC WASM_LLVM_LINK)
CMake Error at CMakeModules/wasm.cmake:8 (message):
  No WASM compiler cound be found (make sure WASM_ROOT is set)
Call Stack (most recent call first):
  CMakeLists.txt:161 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/freewind/workspace/gxb-core/build/CMakeFiles/CMakeOutput.log".

Source type value could not be interpreted as target

When synchronizing blocks, the following error is reported

   99.9868%   2525000 of 2525334
621000ms th_a       db_management.cpp:127         reindex              ] Done reindexing, elapsed time: 608.28581399999995938 sec
621135ms th_a       application.cpp:177           reset_p2p_node       ] Adding seed node 106.14.226.179:6789
621225ms th_a       application.cpp:177           reset_p2p_node       ] Adding seed node 39.108.80.220:6789
621226ms th_a       application.cpp:177           reset_p2p_node       ] Adding seed node 47.92.117.128:6789
621227ms th_a       application.cpp:177           reset_p2p_node       ] Adding seed node 47.52.114.135:6789
621229ms th_a       application.cpp:192           reset_p2p_node       ] Configured p2p node to listen on 0.0.0.0:33399
621231ms th_a       application.cpp:267           reset_websocket_serv ] Configured websocket rpc to listen on 0.0.0.0
621233ms th_a       application.cpp:429           startup              ] 13 N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_16bad_lexical_castEEEEE: bad lexical cast: source type value could not be interpreted as target
bad lexical cast: source type value could not be interpreted as target: error converting string to IP endpoint
    {"what":"bad lexical cast: source type value could not be interpreted as target"}
    th_a  ip.cpp:84 from_string

    {}
    th_a  application.cpp:270 reset_websocket_server
621234ms th_a       application.cpp:994           startup              ] 13 N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_16bad_lexical_castEEEEE: bad lexical cast: source type value could not be interpreted as target
bad lexical cast: source type value could not be interpreted as target: error converting string to IP endpoint
    {"what":"bad lexical cast: source type value could not be interpreted as target"}
    th_a  ip.cpp:84 from_string

    {}
    th_a  application.cpp:270 reset_websocket_server
rethrow
    {}
    th_a  application.cpp:429 startup
621235ms th_a       main.cpp:218                  main                 ] Exiting with error:
13 N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_16bad_lexical_castEEEEE: bad lexical cast: source type value could not be interpreted as target
bad lexical cast: source type value could not be interpreted as target: error converting string to IP endpoint
    {"what":"bad lexical cast: source type value could not be interpreted as target"}
    th_a  ip.cpp:84 from_string

    {}
    th_a  application.cpp:270 reset_websocket_server
rethrow
    {}
    th_a  application.cpp:429 startup
622649ms th_a       db_management.cpp:196         close                ] head_block_num: 2525334, last_irreversible_block_num: 2525320
622649ms th_a       db_management.cpp:197         close                ] Rewinding from 2525334 to 2525320

I am using the latest release, please help, thanks.

enum value "index64_object_type" is defined in the wrong place

wrong place:
enum **object_type** { index64_object_type, }

correct place:
enum **impl_object_type** { index64_object_type, }

reason:
(pay attention to the line: static const uint8_t space_id = implementation_ids; )
`
add_index< primary_index< index64_index> >();

typedef secondary_index<uint64_t, index64_object_type>::index_index index64_index;

template <typename SecondaryKey, uint64_t ObjectTypeId, typename SecondaryKeyLess = std::less>
struct secondary_index {
class index_object : public graphene::db::abstract_object<index_object> {
public:
typedef SecondaryKey secondary_key_type;
static const uint8_t space_id = implementation_ids;
static const uint8_t type_id = ObjectTypeId;
`

API node crash

log:

2019-01-29T00:40:07  th_a:invoke get_item             get_item ] Couldn't find block 00dbdc3b0c85051ee00b37184000000000000000 -- corresponding ID in our chain is 00dbdc3b0c85051ee00b37185f8a62d54a4b191f                      application.cpp:643

refer to: steemit/steem#1524

How to register an account on private chain?

I have successfully installed private network. Now, I want to transfer coin, but I dont know account_id or account_name.
So, how do I register a account via JSON-RPC on private network?

can't install libstdc++-8-dev

I tried to install libstdc++-8-dev dependency via apt-get on Ubuntu 14.04.5 LTS,but I got an error as follows.Do you have any idea about this issue? thanks!

root@localhost:~# apt-get install libstdc++-8-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libstdc++-8-dev
E: Couldn't find any package by regex 'libstdc++-8-dev'

关于节点丢块

目前公信链应该是 每小时 40分 的时候 进行投票统计,该操作会 造成 刚好该时间点出块的节点 丢块~

2019-01-09T04:39:57 th_a:invoke handle_block         handle_block ] Got block: #16210180 time: 2019-01-09T04:39:57 transaction(s): 3 latency: 98 ms from: laomao-bp  irreversible: 16210160 (-20)                       application.cpp:497
2019-01-09T04:40:03 th_a:invoke handle_block         handle_block ] Got block: #16210181 time: 2019-01-09T04:40:00 transaction(s): 6 latency: 3453 ms from: bepal  irreversible: 16210160 (-21)                 application.cpp:497
2019-01-09T04:40:12 th_a:invoke handle_block         handle_block ] Got block: #16210182 time: 2019-01-09T04:40:12 transaction(s): 13 latency: 240 ms from: gx-huobipool  irreversible: 16210162 (-20)                  application.cpp:497

get_table_rows_ex 接口建议收集

get_table_rows_ex接口是get_table_rows的扩展接口。(对于该接口还有哪些改进建议,需要修改或者添加的,可以详细回复讨论)

目前正在初步实现如下扩展:
1、可以通过多种索引方式返回数据。
2、倒序输出lower_bound ~ upper_bound 范围的项。
3、参数修改为结构体,某些字段不提供则使用默认值。

参数字段:
contract 合约名
table 表名
params get_table_rows_params类型结构体

// get_table_rows_params类型结构体
// 字段不传,则使用默认值
struct get_table_rows_params {
   uint64_t      lower_bound = 0;       // 最小边界 (0~-1则返回表中所有的项)
   uint64_t      upper_bound = -1;      // 0xFFFFFFFFFFFFFFFF 最大边界
   uint32_t      limit = 10;            // 获取的项的数目
   std::string   index_position = "1";  // 1 - primary (first), 2 - secondary index (in order defined by multi_index), 3 - third index, etc 主键索引方式
   optional<bool>  reverse = false;     // 是否反向输出
};

调用示例:muli1202 是合约名,mytable是表名,该表共有三种索引方式(id、field1、field2)
cli_wallet:

// 使用默认字段 (范围:0~-1、limit=10、主键索引、不反向)
get_table_rows_ex muli1202 mytable {}
{
  "rows": [{
      "id": 0,
      "field1": 3,
      "field2": 2
    },{
      "id": 1,
      "field1": 4,
      "field2": 7
    },{
      "id": 2,
      "field1": 2,
      "field2": 5
    },{
      "id": 3,
      "field1": 7,
      "field2": 1
    },{
      "id": 4,
      "field1": 3,
      "field2": 3
    }
  ],
  "more": false
}
// 设置自定义范围(范围 0~2、limit=10、主键索引、不反向)
get_table_rows_ex muli1202 mytable {"lower_bound":0,"upper_bound":2}
{
  "rows": [{
      "id": 0,
      "field1": 3,
      "field2": 2
    },{
      "id": 1,
      "field1": 4,
      "field2": 7
    }
  ],
  "more": false
}
// 设置自定义数据条目(范围:0~-1、主键索引、不反向)
get_table_rows_ex muli1202 mytable {"limit":3}
{
  "rows": [{
      "id": 0,
      "field1": 3,
      "field2": 2
    },{
      "id": 1,
      "field1": 4,
      "field2": 7
    },{
      "id": 2,
      "field1": 2,
      "field2": 5
    }
  ],
  "more": false
}
// 使用二级索引(2表示二级索引,此例中使用field1 为索引方式,不反向)
get_table_rows_ex muli1202 mytable {"index_position":2}
{
  "rows": [{
      "id": 2,
      "field1": 2,
      "field2": 5
    },{
      "id": 0,
      "field1": 3,
      "field2": 2
    },{
      "id": 4,
      "field1": 3,
      "field2": 3
    },{
      "id": 1,
      "field1": 4,
      "field2": 7
    },{
      "id": 3,
      "field1": 7,
      "field2": 1
    }
  ],
  "more": false
}
// 将指定范围的数据反向输出(范围:0~-1、主键索引、反向)
get_table_rows_ex muli1202 mytable {"reverse":1}
{
  "rows": [{
      "id": 4,
      "field1": 3,
      "field2": 3
    },{
      "id": 3,
      "field1": 7,
      "field2": 1
    },{
      "id": 2,
      "field1": 2,
      "field2": 5
    },{
      "id": 1,
      "field1": 4,
      "field2": 7
    },{
      "id": 0,
      "field1": 3,
      "field2": 2
    }
  ],
  "more": false
}

获取末尾2条数据,倒序获取

get_table_rows_ex muli1202 mytable {"limit":2,"reverse":1}
{
  "rows": [{
      "id": 6,
      "field1": 1,
      "field2": 9
    },{
      "id": 5,
      "field1": 8,
      "field2": 0
    }
  ],
  "more": false
}

使用curl调用示例:

curl --data '{
    "jsonrpc": "2.0",
    "method": "call",
    "params": [0, "get_table_rows_ex", ["muli1202", "mytable", {"lower_bound":0,"upper_bound":-1,"limit":10,"index_position":1,"reverse":0}]],
    "id": 1
}' 127.0.0.1:28089

Compilation problem

Compilation problem detected on macos. What reason can be?

[ 83%] Linking CXX executable embed_genesis
Undefined symbols for architecture x86_64:
"graphene::chain::database::add_checkpoints(boost::container::flat_map<unsigned int, fc::ripemd160, std::__1::less, boost::container::new_allocator<std::__1::pair<unsigned int, fc::ripemd160> > > const&)", referenced from:
graphene::app::detail::application_impl::startup() in libgraphene_app.a(application.cpp.o)
"graphene::chain::signed_transaction::get_required_signatures(fc::sha256 const&, boost::container::flat_set<graphene::chain::public_key_type, std::__1::lessgraphene::chain::public_key_type, boost::container::new_allocatorgraphene::chain::public_key_type > const&, std::__1::function<graphene::chain::authority const* (graphene::db::object_id<(unsigned char)1, (unsigned char)2, graphene::chain::account_object>)> const&, std::__1::function<graphene::chain::authority const* (graphene::db::object_id<(unsigned char)1, (unsigned char)2, graphene::chain::account_object>)> const&, unsigned int) const", referenced from:
graphene::app::database_api_impl::get_required_signatures(graphene::chain::signed_transaction const&, boost::container::flat_set<graphene::chain::public_key_type, std::__1::lessgraphene::chain::public_key_type, boost::container::new_allocatorgraphene::chain::public_key_type > const&) const in libgraphene_app.a(database_api_impl.cpp.o)
graphene::app::database_api_impl::get_potential_signatures(graphene::chain::signed_transaction const&) const in libgraphene_app.a(database_api_impl.cpp.o)
graphene::app::database_api_impl::get_potential_address_signatures(graphene::chain::signed_transaction const&) const in libgraphene_app.a(database_api_impl.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libraries/egenesis/embed_genesis] Error 1
make[1]: *** [libraries/egenesis/CMakeFiles/embed_genesis.dir/all] Error 2
make: *** [all] Error 2

Linking error

after I type "make" in the command line,It begin to build and link,but at 83%,the errors occur,and build failed,the detail is below:

market.cpp:(.text+0x16c3):对‘fc::log_message::log_message(fc::log_context, std::string, fc::variant_object)’未定义的引用
/home/fjh1997/桌面/gxb-core/build/libraries/chain/libgraphene_chain.a(proposal.cpp.o):在函数‘graphene::chain::proposal_create_operation::validate() const’中:
proposal.cpp:(.text+0x1ff):对‘fc::log_message::log_message(fc::log_context, std::string, fc::variant_object)’未定义的引用
/home/fjh1997/桌面/gxb-core/build/libraries/chain/libgraphene_chain.a(proposal.cpp.o):在函数‘graphene::chain::proposal_update_operation::validate() const’中:
proposal.cpp:(.text+0x5a9):对‘fc::log_message::log_message(fc::log_context, std::string, fc::variant_object)’未定义的引用
proposal.cpp:(.text+0x704):对‘fc::log_message::log_message(fc::log_context, std::string, fc::variant_object)’未定义的引用
proposal.cpp:(.text+0x875):对‘fc::log_message::log_message(fc::log_context, std::string, fc::variant_object)’未定义的引用
/home/fjh1997/桌面/gxb-core/build/libraries/chain/libgraphene_chain.a(proposal.cpp.o):proposal.cpp:(.text+0x9b6): 跟着更多未定义的参考到 fc::log_message::log_message(fc::log_context, std::string, fc::variant_object)
collect2: error: ld returned 1 exit status
libraries/egenesis/CMakeFiles/embed_genesis.dir/build.make:130: recipe for target 'libraries/egenesis/embed_genesis' failed
make[2]: *** [libraries/egenesis/embed_genesis] Error 1
CMakeFiles/Makefile2:863: recipe for target 'libraries/egenesis/CMakeFiles/embed_genesis.dir/all' failed
make[1]: *** [libraries/egenesis/CMakeFiles/embed_genesis.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

what's the matter???

build ubuntu error, not find cc

Describe the bug
I'm trying to compile the source code by BUILD_UBUNTU
根据Wiki,我尝试在Ubuntu下编译源码。

I've got a mistake
我在 Install boost 1.67 中,我遇见一个错误

/tmp/boost_1_67_0/tools/build/src/engine# ./build.sh
# 错误信息
###
### Using 'cc' toolset.
###
rm -rf bootstrap
mkdir bootstrap
cc -o bootstrap/jam0 command.c compile.c constants.c debug.c execcmd.c frames.c function.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c object.c option.c output.c parse.c pathsys.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c class.c cwd.c native.c md5.c w32_getreg.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c execunix.c fileunix.c pathunix.c
./build.sh: 17: ./build.sh: cc: not found

我认为这里面可以添加一个依赖库 gcc
process

sudo apt-get install wget make python-dev libbz2-dev libdb++-dev libdb-dev libssl-dev openssl libreadline-dev autoconf libtool git ntp doxygen libc++-dev

url : https://github.com/gxchain/gxb-core/wiki/BUILD_UBUNTU

private gxchain

Hi, I tried to create a private gxchain following the instructions in tech-doc. After successfully setup a witness node, I then tried to add another witness node into the private network.

but when I try to startup 2nd witness node, it prompted error message
root@test1:# witness_node --rpc-endpoint=127.0.0.1:21011 --p2p-endpoint=0.0.0.0:16789 --seed-nodes='["192.168.56.104:16789"]' --genesis-json my-genesis3.json --log-file --max-ops-per-account=20000 --partial-operations=true --data-transaction-lifetime=1 --replay-blockchain &
[1] 2501
root@test1:
# tail -f witness_node_data_dir/logs/witness.log
2018-04-30T07:13:30 th_a:?unnamed? plugin_startup ] witness plugin: plugin_startup() end witness.cpp:139
2018-04-30T07:13:30 th_a:?unnamed? main ] Started witness node on a chain with 0 blocks. main.cpp:214
2018-04-30T07:13:30 th_a:?unnamed? main ] Chain ID is 19b7aaab15e6920498a09ee1fa4d40362bc11252ca8d2942ff9458e09aaa70f8 main.cpp:215
2018-04-30T07:13:31 th_a:Witness Block Production block_production_loo ] Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production) witness.cpp:189
2018-04-30T07:13:32 th_a:Witness Block Production block_production_loo ] Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production) witness.cpp:189
2018-04-30T07:13:33 th_a:Witness Block Production block_production_loo ] Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production) witness.cpp:189

If I enable stale production to true, it will create new chain, which is not expected. it doesn't sync to my 1st chain.

gxs_wallet npm install err

npm http GET http://registry.cnpmjs.org/regenerator-runtime
npm http GET http://registry.cnpmjs.org/core-js
npm http 304 http://registry.cnpmjs.org/regenerator-runtime
npm http 304 http://registry.cnpmjs.org/core-js
npm http GET http://registry.cnpmjs.org/core-js
npm http GET http://registry.cnpmjs.org/regenerator-runtime
npm http 304 http://registry.cnpmjs.org/core-js
npm http 304 http://registry.cnpmjs.org/regenerator-runtime
npm http GET http://registry.cnpmjs.org/regenerator-runtime
npm http GET http://registry.cnpmjs.org/core-js
npm http 304 http://registry.cnpmjs.org/regenerator-runtime
npm http 304 http://registry.cnpmjs.org/core-js
npm http GET http://registry.cnpmjs.org/core-js
npm http GET http://registry.cnpmjs.org/regenerator-runtime
npm http 304 http://registry.cnpmjs.org/regenerator-runtime
npm http 304 http://registry.cnpmjs.org/core-js
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/yangxing/work/gxc_wallet/gxs-wallet/npm-debug.log
npm ERR! not ok code 0
yangxing@ubuntu:~/work/gxc_wallet/gxs-wallet$ cat /home/yangxing/work/gxc_wallet/gxs-wallet/npm-debug.log
cat: /home/yangxing/work/gxc_wallet/gxs-wallet/npm-debug.log: No such file or directory

get_table_rows error

Describe the bug
cli wallet logs:

locked >>> get_table_rows rockpaprscis info 0 2
get_table_rows rockpaprscis info 0 2
0 exception: unspecified
Assert Exception: itr != structs.end(): Unknown struct info
    {"error":"Assert Exception: itr != structs.end(): Unknown struct info","data":{"id":9,"jsonrpc":"2.0","error":{"code":1,"message":"Assert Exception: itr != structs.end(): Unknown struct info","data":{"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"abi_serializer.cpp","line":205,"method":"get_struct","hostname":"","thread_name":"th_a","timestamp":"2019-01-11T02:27:52"},"format":"itr != structs.end(): Unknown struct ${type}","data":{"type":"info"}},{"context":{"level":"warn","file":"database_api_impl.cpp","line":163,"method":"get_table_objects","hostname":"","thread_name":"th_a","timestamp":"2019-01-11T02:27:52"},"format":"","data":{"account_obj":{"id":"1.2.1093034","membership_expiration_date":"1970-01-01T00:00:00","merchant_expiration_date":"1970-01-01T00:00:00","datasource_expiration_date":"1970-01-01T00:00:00","data_transaction_member_expiration_date":"1970-01-01T00:00:00","registrar":"1.2.1106609","referrer":"1.2.1106609","lifetime_referrer":"1.2.1106609","merchant_auth_referrer":"1.2.0","datasource_auth_referrer":"1.2.0","network_fee_percentage":2000,"lifetime_referrer_fee_percentage":3000,"referrer_rewards_percentage":1000,"name":"rockpaprscis","vm_type":"","vm_version":"","code":"0061736d010000000197011860027f7e0060027f7f0060037f7e7f0060047f7e7f7f006000006000017f60027f7f017f60037f7f7f017f6000017e60047e7e7e7e017f60037f7f7e017e60017f0060017e0060067e7e7e7e7f7f017f60027f7f017e60047e7e7e7e0060037f7f7f0060037e7e7e0060017f017f60037f7f7e0060047f7f7e7f0060047f7f7f7f0060087f7f7f7f7f7f7f7f0060057f7f7f7f7f017f02a3031503656e760561626f7274000403656e7610616374696f6e5f646174615f73697a65000503656e761063757272656e745f7265636569766572000803656e760b64625f66696e645f693634000903656e760a64625f6765745f693634000703656e760c64625f73746f72655f693634000d03656e760d64625f7570646174655f693634000303656e760e6765745f6163636f756e745f6964000e03656e76166765745f6163636f756e745f6e616d655f62795f6964000a03656e76176765745f616374696f6e5f61737365745f616d6f756e74000803656e76136765745f616374696f6e5f61737365745f6964000803656e76136765745f686561645f626c6f636b5f74696d65000803656e760e6765745f7472785f73656e646572000803656e760f6772617068656e655f617373657274000103656e76066d656d637079000703656e76076d656d6d6f7665000703656e76067072696e7473000b03656e76077072696e747569000c03656e7610726561645f616374696f6e5f64617461000603656e7606736861323536001003656e760e77697468647261775f6173736574000f033d3c0606061100060306020601061212060601130606141414061414071506060601150615011401140114071206120b120b0b06160106170b0617071204040501700105050503010001077f09066d656d6f72790200165f5a6571524b3131636865636b73756d32353653315f0015165f5a6571524b3131636865636b73756d31363053315f0016165f5a6e65524b3131636865636b73756d31363053315f0017056170706c790018066d616c6c6f63003f04667265650042066d656d636d70004e067374726c656e004f090b010041000b05501b191f1d0afaab013c0b00200020014120104e450b0b00200020014120104e450b0d00200020014120104e4100470b8e0401017f4100410028020441e0016b2203360204024020012000520d00200341f0006a200137030020032001370348200342ac82808080e2093703502003428a80808090013703582003418084ae0c36026020032001370368200341f8006a427f37030020034180016a410036020020034184016a410036020020034188016a4100360200200320013703900120034198016a2001370300200341a0016a427f370300200341a8016a4100360200200341ac016a4100360200200341b0016a4100360200200320013703b801200341c0016a2001370300200341c8016a427f370300200341d0016a4100360200200341d4016a4100360200200341d8016a41003602000240024002400240200242ffffffdfcd9bb5d963550d00200242808080b8d585cfe64d510d012002428080808080bfb9d75a520d032003410036023c2003410136023820032003290338370210200341c8006a200341106a101c1a0c030b200242808080e0cd9bb5d963510d01200242808080808080e4eef400520d02200341003602442003410236024020032003290340370208200341c8006a200341086a101a1a0c020b2003410036022c2003410336022820032003290328370220200341c8006a200341206a10201a0c010b200341003602342003410436023020032003290330370218200341c8006a200341186a101e1a0b200341c8006a10211a0b4100200341e0016a3602040be50301067f4100410028020441306b22073602042007200137032820002903002101200741206a4100360200200742003703180240418007104f220541704f0d000240024002402005410b4f0d00200720054101743a0018200741186a4101722206210420050d010c020b200541106a41707122061043210420072006410172360218200720043602202007200536021c200741186a41017221060b20044180072005100e1a0b200420056a41003a00002007280220200620072d0018220541017122041b200728021c200541017620041b1007100c51419007100d02402000418c016a280200220620004188016a2802002202460d00200641686a2105410020026b2103034020052802002903004201510d0120052106200541686a22042105200420036a4168470d000b0b200041f0006a21050240024020062002460d00200641686a280200220428021020054641e000100d0c010b41002104200041f0006a290300200041f8006a29030042808080808080d0ebf4004201100322064100480d00200520061027220428021020054641e000100d0b20044541a007100d2007200741286a360210200741086a20052001200741106a103d024020072d0018410171450d00200741206a28020010440b4100200741306a3602040f0b200741186a1045000bd40103017f017e037f410028020441106b22042106410020043602042001280204210220012802002105024002400240024010012201450d002001418104490d012001103f21040c020b410021040c020b410020042001410f6a4170716b22043602040b2004200110121a0b20064200370308200141074b4120100d200641086a20044108100e1a2006290308210302402001418104490d00200410420b200020024101756a210102402002410171450d00200128020020056a28020021050b2001200320051100004100200641106a36020441010bdd1f02017e137f4100410028020441f0016b22173602042000290300210402402000413c6a2802002214200041386a2802002216460d00201441686a2112410020166b2115034020122802002903002001510d0120122114201241686a22112112201120156a4168470d000b0b200041206a21050240024020142016460d00201441686a280200221328027420054641e000100d0c010b41002113200041206a290300200041286a29030042808080808080abd2e1002001100322124100480d00200520121028221328027420054641e000100d0b2013410047220641c005100d20172013290300370378201741f8006a41086a2207201341086a104c1a201741f8006a41146a2208201341146a104c1a201741f8006a41206a2209201341206a104c1a201741f8006a412c6a220a2013412c6a104c1a201741f8006a41386a220b201341386a104c1a201741f8006a41c4006a220c201341c4006a104c1a201741f8006a41d0006a220d201341d0006a104c1a201720132903603703d801201741f8006a41e8006a220e201341e8006a104c1a100b20172903d8017d20003502185841d005100d201741e8006a41086a4100360200201742003703680240024041a001104f221241704f0d000240024002402012410b4f0d00201720124101743a0068201741e8006a410172211120120d010c020b201241106a41707122141043211120172014410172360268201720113602702017201236026c0b201141a0012012100e1a0b201120126a41003a0000201741e0006a41003602002017420037035841a001104f221241704f0d010240024002402012410b4f0d00201720124101743a0058201741d8006a410172211120120d010c020b201241106a41707122141043211120172014410172360258201720113602602017201236025c0b201141a0012012100e1a0b201120126a41003a0000024002400240024002400240024002400240024002400240024002400240024002400240024002402003280204221620032d00002215410176220f201541017122141b221020174184016a28020020174180016a2d00002212410176201241017122111b470d00200341016a211220174188016a280200200741016a20111b2111024020140d002010450d024100200f6b2114034020122d000020112d0000470d02201141016a2111201241016a2112201441016a22140d000c030b0b2010450d012003280208201220141b20112010104e450d01200341046a280200211620032d000021150b2016201541017641ff00712210201541017122141b2215201741a8016a280200201741a4016a2d00002212410176201241017122111b470d02200341016a2112201741ac016a280200200a41016a20111b211120140d012015450d03410020106b2114034020122d000020112d0000470d03201141016a2111201241016a2112201441016a22140d000c040b0b2017419c016a28020020174198016a2d0000221241017620124101711b4541e005100d20022d000022124101710d0320124101762112200241016a21110c040b2015450d012003280208201220141b20112015104e450d010b410041b006100d0c0f0b201741c0016a280200201741bc016a2d0000221241017620124101711b4541e005100d20022d000022124101710d0220124101762112200241016a21110c030b20022802042112200228020821110b20112012201741306a1013201741206a4200370300201741286a4200370300201742003703182017420037031020174194016a280200200841016a2017418c016a2d00004101711b21124100211402400340201241016a2d000021114149211641492115024020122d0000220341bf7f6a41ff01714106490d0041a97f21152003419f7f6a41ff01714106490d0041d0012115200341506a41ff017141094b0d020b0240201141bf7f6a41ff01714106490d0041a97f21162011419f7f6a41ff01714106490d0041d0012116201141506a41ff017141094b0d020b201741106a20146a201620116a201520036a410474723a0000201241026a2112201441016a22144120480d000b0b410021114100211202400340201741106a20126a2d0000201741306a20126a2d0000470d01201241016a2212411f4d0d000b410121110b201141f004100d2009200210461a20172002410041012002104d1a0240024020172d00684101710d00201741003b01680c010b201728027041003a00002017410036026c0b201741e8006a41001048201741e8006a41086a201741086a28020036020020172017290300370368201741c0016a280200201741bc016a2d0000221241017620124101711b450d042017200c41004101200c104d1a20172d00584101710d02201741003b01580c030b20022802042112200228020821110b20112012201741306a1013201741286a4200370300201741206a42003703002017420037031820174200370310201741b8016a280200200b41016a201741b0016a2d00004101711b21124100211402400340201241016a2d000021114149211641492115024020122d0000220341bf7f6a41ff01714106490d0041a97f21152003419f7f6a41ff01714106490d0041d0012115200341506a41ff017141094b0d020b0240201141bf7f6a41ff01714106490d0041a97f21162011419f7f6a41ff01714106490d0041d0012116201141506a41ff017141094b0d020b201741106a20146a201620116a201520036a410474723a0000201241026a2112201441016a22144120480d000b0b410021114100211202400340201741106a20126a2d0000201741306a20126a2d0000470d01201241016a2212411f4d0d000b410121110b201141f004100d200c200210461a2017419c016a28020020174198016a2d0000221241017620124101711b450d0520172009410041012009104d1a20172d00684101710d03201741003b01680c040b201728026041003a00002017410036025c0b201741d8006a41001048201741d8006a41086a201741086a280200360200201720172903003703580b024041f005104f2211201728026c20172d0068221241017620124101711b470d00201741e8006a4100417f41f0052011104a450d040b41012112024041b005104f2214201728026c20172d0068221141017620114101711b470d00201741e8006a4100417f41b0052014104a450d050b20172d0068221241017121112012410176211441002112418006104f2215201728026c201420111b470d04201741e8006a4100417f4180062015104a4521120c040b201728027041003a00002017410036026c0b201741e8006a41001048201741e8006a41086a201741086a280200360200201720172903003703680b20172002410041012002104d1a0240024020172d00584101710d00201741003b01580c010b201728026041003a00002017410036025c0b201741d8006a41001048201741d8006a41086a201741086a2802003602002017201729030037035841012112024041f005104f2214201728025c20172d0058221141017620114101711b470d00201741d8006a4100417f41f0052014104a450d040b024041b005104f2211201728025c20172d0058221241017620124101711b470d00201741d8006a4100417f41b0052011104a450d030b41002112418006104f2214201728025c20172d0058221141017620114101711b470d03201741d8006a4100417f4180062014104a4521120c030b410121120b2012419006100d0c020b410121120b2012419006100d0b0240201728026c20172d0068221241017620124101711b450d00201728025c20172d0058221241017620124101711b450d00024002400240024041f005104f2211201728026c20172d0068221241017620124101711b470d00201741e8006a4100417f41f0052011104a0d00418006104f2211201728025c20172d0058221241017620124101711b470d00201741d8006a4100417f4180062011104a450d010b024041b005104f2211201728026c20172d0068221241017620124101711b470d00201741e8006a4100417f41b0052011104a0d0041f005104f2211201728025c20172d0058221241017620124101711b470d00201741d8006a4100417f41f0052011104a450d010b0240418006104f2211201728026c20172d0068221241017620124101711b470d00201741e8006a4100417f4180062011104a0d0041b005104f2211201728025c20172d0058221241017620124101711b470d00201741d8006a4100417f41b0052011104a450d010b02400240201728026c20172d006822124101762203201241017122141b2215201728025c20172d00582212410176201241017122121b470d002017280260201741d8006a41017220121b2112201741e8006a4101722111024020140d002015450d02410020036b2114034020112d000020122d0000470d02201241016a2112201141016a2111201441016a22140d000c030b0b2015450d012017280270201120141b20122015104e450d010b0240418006104f2211201728026c20172d0068221241017620124101711b470d00201741e8006a4100417f4180062011104a0d0041f005104f2211201728025c20172d0058221241017620124101711b470d00201741d8006a4100417f41f0052011104a450d030b024041f005104f2211201728026c20172d0068221241017620124101711b470d00201741e8006a4100417f41f0052011104a0d0041b005104f2211201728025c20172d0058221241017620124101711b470d00201741d8006a4100417f41b0052011104a450d030b024041b005104f2211201728026c20172d0068221241017620124101711b470d00201741e8006a4100417f41b0052011104a0d00418006104f2211201728025c20172d0058221241017620124101711b470d00201741d8006a4100417f4180062011104a450d030b410041d006100d0c030b200d41a00110491a200420174188016a280200200741016a20174180016a2d0000221241017122111b20174184016a280200201241017620111b100742012000280214200028020c20002802106e6cad10142004201741ac016a280200200a41016a201741a4016a2d0000221241017122111b201741a8016a280200201241017620111b100742012000280214200028020c20002802106e6cad10140c020b200d200710461a2004201741d0016a280200200d41016a201741c8016a2d0000221241017122111b201741cc016a280200201241017620111b100742012000280214200028020c20002802106e6cad10140c010b200d200a10461a2004201741d0016a280200200d41016a201741c8016a2d0000221241017122111b201741cc016a280200201241017620111b100742012000280214200028020c20002802106e6cad10140b200e41f00510491a0b2017201741f8006a360210200641b001100d200520132004201741106a103b41e006101020172903781011024020172d0058410171450d00201728026010440b024020172d0068410171450d00201728027010440b201741f8006a10221a4100201741f0016a3602040f0b201741e8006a1045000b201741d8006a1045000bc50201027f4100410028020441c0006b220336020420032202200036022c2002200128020036022020022001280204360224024002400240024010012200450d002000418104490d012000103f21010c020b410021010c020b410020032000410f6a4170716b22013602040b2001200010121a0b200241106a4200370300200241186a420037030020024200370300200242003703082002200120006a36023820022001360230200041074b4120100d200220014108100e1a2002200141086a360234200241306a200241086a10231a200241306a200241146a10231a02402000418104490d00200110420b2002200241206a36023420022002412c6a360230200241306a2002103a024020022d0014410171450d002002411c6a28020010440b024020022d0008410171450d00200241106a28020010440b4100200241c0006a36020441010bb70902017e0c7f410041002802044180016b220f3602042000290300210302402000413c6a280200220e200041386a2802002204460d00200e41686a210d410020046b21050340200d2802002903002001510d01200d210e200d41686a2206210d200620056a4168470d000b0b200041206a210502400240200e2004460d00200e41686a280200220d28027420054641e000100d0c010b4100210d200041206a290300200041286a29030042808080808080abd2e1002001100322064100480d00200520061028220d28027420054641e000100d0b41002106200d410047220741e004100d200f200d290300370308200f41086a41086a2208200d41086a104c1a200f41086a41146a200d41146a104c1a200f41086a41206a200d41206a104c1a200f41086a412c6a2209200d412c6a104c1a200f41086a41386a200d41386a104c1a200f41086a41c4006a200d41c4006a104c1a200f41086a41d0006a220a200d41d0006a104c1a200f200d290360370368200f41086a41e8006a200d41e8006a104c1a200f29036842005241f004100d024041a001104f2204200f41dc006a280200200f2d0058220e410176200e4101711b470d00200a4100417f41a0012004104a4521060b2006418005100d0240024002400240024002400240100b200f41e8006a2903007d2000350218580d00200228020420022d00002206410176220b200641017122041b220c200f41146a280200200f41106a2d000022064101762006410171220e1b470d03200241016a2106200f41186a280200200841016a200e1b210e20040d01200c450d024100200b6b2104034020062d0000200e2d0000470d04200e41016a210e200641016a2106200441016a22040d000c030b0b4100419005100d0c050b200c450d002002280208200620041b200e200c104e0d010b200f412c6a280200200f41286a2d0000220641017620064101711b450d00200f41d0006a280200200f41cc006a2d0000220641017620064101711b450d010b0240200241046a28020020022d00002206410176220c200641017122041b2208200f41386a280200200f41346a2d000022064101762006410171220e1b470d00200241016a2106200f413c6a280200200941016a200e1b210e0240024020040d002008450d014100200c6b2102034020062d0000200e2d0000470d03200e41016a210e200641016a2106200241016a22020d000c020b0b2008450d002002280208200620041b200e2008104e0d010b200f41d0006a280200200f41cc006a2d0000220641017620064101711b450d00200f412c6a280200200f41286a2d0000220641017620064101711b450d020b410041f004100d0c020b200a200810461a2003200f41e0006a280200200a41016a200f41d8006a2d00002206410171220e1b200f41dc006a2802002006410176200e1b100742012000280214200028020c20002802106e6cad10140c010b200a200910461a2003200f41e0006a280200200a41016a200f41d8006a2d00002206410171220e1b200f41dc006a2802002006410176200e1b100742012000280214200028020c20002802106e6cad10140b200f200f41086a360200200741b001100d2005200d2003200f103941a0051010200f2903081011200f41086a10221a4100200f4180016a3602040b9a0201027f4100410028020441c0006b220336020420032202200036022c200220012802003602202002200128020436022441002101024010012200450d00024002402000418104490d002000103f21010c010b410020032000410f6a4170716b22013602040b2001200010121a0b200241186a410036020020024200370308200242003703102002200120006a36023820022001360230200041074b4120100d200241086a20014108100e1a2002200141086a360234200241306a200241086a41086a10231a02402000418104490d00200110420b2002200241206a36023420022002412c6a360230200241306a200241086a1038024020022d0010410171450d00200241186a28020010440b4100200241c0006a36020441010ba20502017e067f4100410028020441d0006b220836020402400240100c22022000290300510d00200841c0006a2001410041032001104d1a200841386a4100360200200842003703304130104f220641704f0d010240024002402006410b4f0d00200820064101743a0030200841306a410172210720060d010c020b200641106a4170712205104321072008200541017236023020082007360238200820063602340b200741302006100e1a0b200720066a41003a000020084200370320200841003602280240024002400240200828024420082d004022064101762203200641017122051b2204200828023420082d00302206410176200641017122061b470d002008280238200841306a41017220061b2106200841c0006a4101722107024020050d002004450d02410020036b2105034020072d000020062d0000470d02200641016a2106200741016a2107200541016a22050d000c030b0b2004450d012008280248200720051b20062004104e450d010b0240024020012d000022064101710d00200641017621060c010b200128020421060b200641c000470d02200841206a200110461a0c010b200841106a20014103417f2001104d1a0240024020082d00204101710d00200841003b01200c010b200841286a28020041003a0000200841003602240b200841206a41001048200841206a41086a200841106a41086a280200360200200820082903103703200b100a42015141c000100d1009200035020c5a41d000100d2008200841206a104c1a200020082002102620082d0000410171450d00200828020810440b024020082d0020410171450d00200841286a28020010440b024020082d0030410171450d00200828023810440b20082d0040410171450d00200828024810440b4100200841d0006a3602040f0b200841306a1045000bb40201057f410028020441306b2206210541002006360204200128020421022001280200210441002101024010012203450d00024002402003418104490d002003103f21010c010b410020062003410f6a4170716b22013602040b2001200310121a0b200541003602082005420037030020052001360224200520013602202005200120036a360228200541206a200510231a02402003418104490d00200110420b200020024101756a2101200541106a2005104c1a02402002410171450d00200128020020046a28020021040b200541206a200541106a104c1a2001200541206a2004110100024020052d0020410171450d00200528022810440b024020052d0010410171450d00200528021810440b024020052d0000410171450d00200541086a28020010440b4100200541306a36020441010bd20201047f024020004188016a2802002201450d00024002402000418c016a220328020022042001460d000340200441686a220428020021022004410036020002402002450d00200210440b20012004470d000b20004188016a28020021040c010b200121040b20032001360200200410440b0240200041e0006a2802002201450d0002400240200041e4006a220328020022042001460d000340200441686a220428020021022004410036020002402002450d00200210440b20012004470d000b200041e0006a28020021040c010b200121040b20032001360200200410440b0240200041386a2802002201450d00024002402000413c6a220328020022042001460d000340200441686a220428020021022004410036020002402002450d00200210221a200210440b20012004470d000b200041386a28020021040c010b200121040b20032001360200200410440b20000bc80100024020002d0068410171450d00200041f0006a28020010440b024020002d0050410171450d00200041d8006a28020010440b024020002d0044410171450d00200041cc006a28020010440b024020002d0038410171450d00200041c0006a28020010440b024020002d002c410171450d00200041346a28020010440b024020002d0020410171450d00200041286a28020010440b024020002d0014410171450d002000411c6a28020010440b024020002d0008410171450d00200041106a28020010440b20000bb40301067f4100410028020441206b220736020420074100360218200742003703102000200741106a10241a0240024002400240024002400240024002402007280214220520072802102204470d0020012d00004101710d01200141003b0100200141086a21040c020b200741086a410036020020074200370300200520046b220241704f0d072002410b4f0d02200720024101743a00002007410172210620020d030c040b200128020841003a000020014100360204200141086a21040b2001410010482004410036020020014200370200200728021022040d030c040b200241106a4170712205104321062007200541017236020020072006360208200720023602040b20022103200621050340200520042d00003a0000200541016a2105200441016a21042003417f6a22030d000b200620026a21060b200641003a00000240024020012d00004101710d00200141003b01000c010b200128020841003a0000200141003602040b200141001048200141086a200741086a2802003602002001200729030037020020072802102204450d010b20072004360214200410440b4100200741206a36020420000f0b20071045000b810203047f017e017f200028020421054100210742002106200041086a2102200041046a2103034020052002280200494110100d200328020022052d000021042003200541016a2205360200200441ff0071200741ff0171220774ad2006842106200741076a210720044107760d000b024002402006a7220320012802042207200128020022046b22024d0d002001200320026b1025200041046a2802002105200141046a2802002107200128020021040c010b200320024f0d00200141046a200420036a22073602000b200041086a28020020056b200720046b22054f4120100d2004200041046a22072802002005100e1a2007200728020020056a36020020000bad0201057f0240024002400240024020002802082202200028020422066b20014f0d002006200028020022056b220320016a2204417f4c0d0241ffffffff0721060240200220056b220241feffffff034b0d0020042002410174220620062004491b2206450d020b2006104321020c030b200041046a21000340200641003a00002000200028020041016a22063602002001417f6a22010d000c040b0b41002106410021020c010b2000104b000b200220066a2104200220036a220521060340200641003a0000200641016a21062001417f6a22010d000b2005200041046a2203280200200028020022016b22026b2105024020024101480d00200520012002100e1a200028020021010b2000200536020020032006360200200041086a20043602002001450d00200110440f0b0bc50b04017e037f017e077f4100410028020441d0006b220e360204200e20023703482000290300210302402000418c016a280200220c20004188016a280200220d460d00200c41686a210b4100200d6b21050340200b2802002903004201510d01200b210c200b41686a2206210b200620056a4168470d000b0b200041f0006a210402400240200c200d460d00200c41686a280200220d28021020044641e000100d0c010b4100210d200041f0006a290300200041f8006a29030042808080808080d0ebf40042011003220b4100480d002004200b1027220d28021020044641e000100d0b200e200d290308220737034002402000413c6a280200220c200041386a2802002208460d00200c41686a210b410020086b21050340200b2802002903002007510d01200b210c200b41686a2206210b200620056a4168470d000b0b200041206a210502400240200c2008460d00200c41686a280200220628027420054641e000100d0c010b41002106200041206a290300200041286a29030042808080808080abd2e10020071003220b4100480d002005200b1028220628027420054641e000100d0b200e413c6a41003a0000200e41306a41086a4100360200200e4200370230200e41306a410d200210081a200e41206a41086a4100360200200e420037032002400240200e41306a104f220b41704f0d00024002400240200b410b4f0d00200e200b4101743a0020200e41206a410172210c200b0d010c020b200b41106a41707122081043210c200e2008410172360220200e200c360228200e200b3602240b200c200e41306a200b100e1a0b200c200b6a41003a00000240024002400240024002402006450d0041a001104f220c200641306a28020020062d002c220b410176200b4101711b470d012006412c6a4100417f41a001200c104a210b200e2903402107200b0d022007500d02200641086a210c024041a001104f220d2006410c6a28020020062d0008220b410176200b4101711b470d00200c4100417f41a001200d104a450d080b41a001104f220d200641306a28020020062d002c220b410176200b4101711b470d072006412c6a4100417f41a001200d104a0d0741012104200e280224200e2d0020220b4101762209200b410171220d1b22082006410c6a280200200641086a2d0000220b410176200b410171220a1b470d05200e41206a410172210b200641106a280200200c41016a200a1b210c200d0d032008450d04410020096b210d410121040340200b2d0000200c2d0000470d06200c41016a210c200b41016a210b200d41016a220d0d000c050b0b42002107200e2903404200520d060c010b200e29034021070b200e200742017c370340200e200e41c0006a360210200d41004741b001100d2004200d2003200e41106a1029200e2001360218200e200e41206a360214200e200e41c0006a360210200e41086a20052003200e41106a102a0c040b2008450d00200e280228200b200d1b200c2008104e41004721040c010b410021040b200441e001100d200e2001360214200e200e41206a360210410141b001100d200520062003200e41106a102b41f0011010200629030010110c010b200e41206a1045000b200e29034821070240200041e4006a280200220c200041e0006a280200220d460d00200c41686a210b4100200d6b21050340200b2802002903002007510d01200b210c200b41686a2206210b200620056a4168470d000b0b200041c8006a210b0240024002400240200c200d460d00200c41686a2802002206280210200b4641e000100d20060d010c020b200041c8006a290300200041d0006a2903004280808080f0abf9a6ac7f2007100322064100480d01200b2006102c2206280210200b4641e000100d0b200e200e41c0006a360210410141b001100d200b20062003200e41106a102e0c010b200e200e41c0006a360214200e200e41c8006a360210200e41086a200b2003200e41106a102d0b0240200e2d0020410171450d00200e28022810440b4100200e41d0006a3602040bad0303037f017e047f410028020441206b220921084100200936020402402000411c6a280200220720002802182202460d00410020026b2103200741686a21060340200641106a2802002001460d0120062107200641686a22042106200420036a4168470d000b0b0240024020072002460d00200741686a28020021060c010b20014100410010042204411f76410173419004100d0240024020044180044d0d0020012004103f2207200410041a200710420c010b410020092004410f6a4170716b220736020420012007200410041a0b4120104322062000360210200441074b4120100d200620074108100e1a20044178714108474120100d200641086a200741086a4108100e1a200620013602142008200636021820082006290300220537031020082006280214220736020c024002402000411c6a22012802002204200041206a2802004f0d00200420053703082004200736021020084100360218200420063602002001200441186a3602000c010b200041186a200841186a200841106a2008410c6a10370b20082802182104200841003602182004450d00200410440b4100200841206a36020420060bb10403037f017e047f410028020441306b220921084100200936020402402000411c6a280200220720002802182202460d00410020026b2103200741686a21060340200641106a2802002001460d0120062107200641686a22042106200420036a4168470d000b0b0240024020072002460d00200741686a28020021060c010b20014100410010042206411f76410173419004100d024002402006418104490d002006103f21040c010b410020092006410f6a4170716b22043602040b20012004200610041a20082004360224200820043602202008200420066a36022802402006418104490d00200410420b418001104322064200370208200642003702102006420037021820064200370220200642003702282006410036023020064100360234200641003602382006410036023c2006410036024020064100360244200641003602482006410036024c200641003602502006410036025420064100360258200641003602682006410036026c2006410036027020062000360274200841206a200610361a200620013602782008200636021820082006290300220537031020082006280278220736020c024002402000411c6a22012802002204200041206a2802004f0d00200420053703082004200736021020084100360218200420063602002001200441186a3602000c010b200041186a200841186a200841106a2008410c6a10350b20082802182104200841003602182004450d00200410221a200410440b4100200841306a36020420060ba90102017e017f4100410028020441106b22053602042001280210200046419002100d200029030010025141c002100d20012003280200290300370308200129030021044101418003100d410141c003100d200520014108100e1a410141c003100d2005410872200141086a4108100e1a20012802142002200541101006024020042000290310540d00200041106a427e200442017c2004427d561b3703000b4100200541106a3602040b8a0301047f4100410028020441306b220736020420072002370328200129030010025141d003100d20072003360214200720013602102007200741286a360218418001104322034200370208200342003702102003420037021820034200370220200342003702282003410036023020034100360234200341003602382003410036023c2003410036024020034100360244200341003602482003410036024c200341003602502003410036025420034100360258200341003602682003410036026c2003410036027020032001360274200741106a200310342007200336022020072003290300220237031020072003280278220436020c024002402001411c6a22062802002205200141206a2802004f0d00200520023703082005200436021020074100360220200520033602002006200541186a3602000c010b200141186a200741206a200741106a2007410c6a10350b2000200336020420002001360200200728022021032007410036022002402003450d00200310221a200310440b4100200741306a3602040b880202017e027f4100410028020441106b22063602042001280274200046419002100d200029030010025141c002100d200129030021042001412c6a200328020010461a200141386a200328020410461a2001100b3703602004200129030051418003100d2006220341003602002003200110311a0240024020032802002205418104490d002005103f21060c010b410020062005410f6a4170716b22063602040b20032006360204200320063602002003200620056a3602082003200110321a2001280278200220062005100602402005418104490d00200610420b024020042000290310540d00200041106a427e200442017c2004427d561b3703000b4100200341106a3602040bad0303037f017e047f410028020441206b220921084100200936020402402000411c6a280200220720002802182202460d00410020026b2103200741686a21060340200641106a2802002001460d0120062107200641686a22042106200420036a4168470d000b0b0240024020072002460d00200741686a28020021060c010b20014100410010042204411f76410173419004100d0240024020044180044d0d0020012004103f2207200410041a200710420c010b410020092004410f6a4170716b220736020420012007200410041a0b4120104322062000360210200441074b4120100d200620074108100e1a20044178714108474120100d200641086a200741086a4108100e1a200620013602142008200636021820082006290300220537031020082006280214220736020c024002402000411c6a22012802002204200041206a2802004f0d00200420053703082004200736021020084100360218200420063602002001200441186a3602000c010b200041186a200841186a200841106a2008410c6a10300b20082802182104200841003602182004450d00200410440b4100200841206a36020420060bfb0101047f4100410028020441306b220736020420072002370328200129030010025141d003100d20072003360214200720013602102007200741286a3602184120104322032001200741106a102f1a2007200336022020072003290300220237031020072003280214220436020c024002402001411c6a22062802002205200141206a2802004f0d00200520023703082005200436021020074100360220200520033602002006200541186a3602000c010b200141186a200741206a200741106a2007410c6a10300b2000200336020420002001360200200728022021012007410036022002402001450d00200110440b4100200741306a3602040ba90102017e017f4100410028020441106b22053602042001280210200046419002100d200029030010025141c002100d20012003280200290300370308200129030021044101418003100d410141c003100d200520014108100e1a410141c003100d2005410872200141086a4108100e1a20012802142002200541101006024020042000290310540d00200041106a427e200442017c2004427d561b3703000b4100200541106a3602040bc00102017e017f4100410028020441106b2204360204200020013602102000200228020422012802002903003703002000200128020429030037030820022802002101410141c003100d200420004108100e1a410141c003100d2004410872200041086a4108100e1a200020012903084280808080f0abf9a6ac7f200228020829030020002903002203200441101005360214024020032001290310540d00200141106a427e200342017c2003427d561b3703000b4100200441106a36020420000baa0301047f024002402000280204200028020022066b41186d220441016a220541abd5aad5004f0d0041aad5aad500210702400240200028020820066b41186d220641d4aad52a4b0d0020052006410174220720072005491b2207450d010b200741186c104321060c020b41002107410021060c010b2000104b000b20012802002105200141003602002006200441186c6a2201200536020020012002290300370308200120032802003602102006200741186c6a2104200141186a210502400240200041046a280200220620002802002207460d000340200641686a2202280200210320024100360200200141686a2003360200200141786a200641786a280200360200200141746a200641746a280200360200200141706a200641706a280200360200200141686a21012002210620072002470d000b200041046a2802002107200028020021060c010b200721060b20002001360200200041046a2005360200200041086a2004360200024020072006460d000340200741686a220728020021012007410036020002402001450d00200110440b20062007470d000b0b02402006450d00200610440b0be40603017f017e017f2000200028020041086a22043602002001410c6a28020020012d0008220241017620024101711bad21030340200441016a2104200342078822034200520d000b2000200436020002402001410c6a280200200141086a2d0000220241017620024101711b2202450d002000200220046a22043602000b200141186a28020020012d0014220241017620024101711bad21030340200441016a2104200342078822034200520d000b200020043602000240200141186a280200200141146a2d0000220241017620024101711b2202450d002000200220046a22043602000b200141246a28020020012d0020220241017620024101711bad21030340200441016a2104200342078822034200520d000b200020043602000240200141246a280200200141206a2d0000220241017620024101711b2202450d002000200220046a22043602000b200141306a28020020012d002c220241017620024101711bad21030340200441016a2104200342078822034200520d000b200020043602000240200141306a2802002001412c6a2d0000220241017620024101711b2202450d002000200220046a22043602000b2001413c6a28020020012d0038220241017620024101711bad21030340200441016a2104200342078822034200520d000b2000200436020002402001413c6a280200200141386a2d0000220241017620024101711b2202450d002000200220046a22043602000b200141c8006a28020020012d0044220241017620024101711bad21030340200441016a2104200342078822034200520d000b200020043602000240200141c8006a280200200141c4006a2d0000220241017620024101711b2202450d002000200220046a22043602000b200141d4006a28020020012d0050220241017620024101711bad21030340200441016a2104200342078822034200520d000b200020043602000240200141d4006a280200200141d0006a2d0000220241017620024101711b2202450d002000200220046a22043602000b2000200441086a2204360200200141ec006a28020020012d0068220241017620024101711bad21030340200441016a2104200342078822034200520d000b200020043602000240200141ec006a280200200141e8006a2d0000220141017620014101711b2201450d002000200120046a3602000b20000b9d0100200028020820002802046b41074a41c003100d200028020420014108100e1a2000200028020441086a3602042000200141086a1033200141146a1033200141206a10332001412c6a1033200141386a1033200141c4006a1033200141d0006a1033220028020820002802046b41074a41c003100d2000280204200141e0006a4108100e1a2000200028020441086a3602042000200141e8006a10330b870203057f017e017f4100410028020441106b2208360204200128020420012d0000220541017620054101711bad210720002802042106200041086a2104200041046a210503402007a721022008200742078822074200522203410774200241ff0071723a000f200428020020066b41004a41c003100d20052802002008410f6a4101100e1a2005200528020041016a220636020020030d000b0240200141046a28020020012d00002205410176200541017122021b2205450d0020012802082103200041086a28020020066b20054e41c003100d200041046a22062802002003200141016a20021b2005100e1a2006200628020020056a3602000b4100200841106a36020420000be30203027f017e027f4100410028020441106b220536020420012000280204220628020029030037030020002802002102200141086a200628020410461a200141146a200628020810461a200141206a41a00110491a2001412c6a41a00110491a200141386a41a00110491a200141c4006a41a00110491a200141d0006a41a00110491a2001100b370360200141e8006a41b00410491a41c0041010200129030010112005220641003602002006200110311a0240024020062802002203418104490d002003103f21050c010b410020052003410f6a4170716b22053602040b20062005360204200620053602002006200520036a3602082006200110321a2001200229030842808080808080abd2e10020002802082903002001290300220420052003100536027802402003418104490d00200510420b024020042002290310540d00200241106a427e200442017c2004427d561b3703000b4100200641106a3602040baf0301047f024002402000280204200028020022066b41186d220441016a220541abd5aad5004f0d0041aad5aad500210702400240200028020820066b41186d220641d4aad52a4b0d0020052006410174220720072005491b2207450d010b200741186c104321060c020b41002107410021060c010b2000104b000b20012802002105200141003602002006200441186c6a2201200536020020012002290300370308200120032802003602102006200741186c6a2104200141186a210502400240200041046a280200220620002802002207460d000340200641686a2202280200210320024100360200200141686a2003360200200141786a200641786a280200360200200141746a200641746a280200360200200141706a200641706a280200360200200141686a21012002210620072002470d000b200041046a2802002107200028020021060c010b200721060b20002001360200200041046a2005360200200041086a2004360200024020072006460d000340200741686a220728020021012007410036020002402001450d00200110221a200110440b20062007470d000b0b02402006450d00200610440b0b9b0100200028020820002802046b41074b4120100d200120002802044108100e1a2000200028020441086a3602042000200141086a1023200141146a1023200141206a10232001412c6a1023200141386a1023200141c4006a1023200141d0006a1023220028020820002802046b41074b4120100d200141e0006a20002802044108100e1a2000200028020441086a3602042000200141e8006a10230baa0301047f024002402000280204200028020022066b41186d220441016a220541abd5aad5004f0d0041aad5aad500210702400240200028020820066b41186d220641d4aad52a4b0d0020052006410174220720072005491b2207450d010b200741186c104321060c020b41002107410021060c010b2000104b000b20012802002105200141003602002006200441186c6a2201200536020020012002290300370308200120032802003602102006200741186c6a2104200141186a210502400240200041046a280200220620002802002207460d000340200641686a2202280200210320024100360200200141686a2003360200200141786a200641786a280200360200200141746a200641746a280200360200200141706a200641706a280200360200200141686a21012002210620072002470d000b200041046a2802002107200028020021060c010b200721060b20002001360200200041046a2005360200200041086a2004360200024020072006460d000340200741686a220728020021012007410036020002402001450d00200110440b20062007470d000b0b02402006450d00200610440b0bab0102017e027f4100410028020441206b2204360204200129030021022004200141086a104c1a20002802002802002000280204220028020422034101756a21012000280200210002402003410171450d00200128020020006a28020021000b200441106a2004104c1a20012002200441106a2000110200024020042d0010410171450d00200428021810440b024020042d0000410171450d00200428020810440b4100200441206a3602040bed0204017e037f017e027f410028020441106b220a21094100200a3602042001280274200046419002100d200029030010025141c002100d20012903002104200141e8006a200328020041e8006a41b005104910461a0240024041a001104f22052003280200220641d4006a28020020062d0050220741017620074101711b470d00200641d0006a4100417f41a0012005104a450d010b200141d0006a200328020041d0006a10461a0b100b210820032802002008370360200120083703602004200129030051418003100d200941003602002009200110311a0240024020092802002206418104490d002006103f21030c010b4100200a2006410f6a4170716b22033602040b20092003360204200920033602002009200320066a3602082009200110321a2001280278200220032006100602402006418104490d00200310420b024020042000290310540d00200041106a427e200442017c2004427d561b3703000b4100200941106a3602040bf60102017e027f4100410028020441c0006b220436020420012903002102200441106a200141086a104c1a2004200141146a104c1a20002802002802002000280204220128020422034101756a21002001280200210102402003410171450d00200028020020016a28020021010b200441306a200441106a104c1a200441206a2004104c1a20002002200441306a200441206a2001110300024020042d0020410171450d00200428022810440b024020042d0030410171450d00200428023810440b024020042d0000410171450d00200428020810440b024020042d0010410171450d00200428021810440b4100200441c0006a3602040bed0102017e027f4100410028020441106b22063602042001280274200046419002100d200029030010025141c002100d2001290300210420032001103c2004200129030051418003100d2006220341003602002003200110311a0240024020032802002205418104490d002005103f21060c010b410020062005410f6a4170716b22063602040b20032006360204200320063602002003200620056a3602082003200110321a2001280278200220062005100602402005418104490d00200610420b024020042000290310540d00200041106a427e200442017c2004427d561b3703000b4100200341106a3602040b930101037f200141206a200028020041206a10461a200141c4006a200028020041c4006a10461a0240024041a001104f22022000280200220341d4006a28020020032d0050220441017620044101711b470d00200341d0006a4100417f41a0012002104a450d010b200141d0006a200028020041d0006a10461a200141e8006a200028020041e8006a10461a0b2001100b3703600bfb0101047f4100410028020441306b220736020420072002370328200129030010025141d003100d20072003360214200720013602102007200741286a3602184120104322032001200741106a103e1a2007200336022020072003290300220237031020072003280214220436020c024002402001411c6a22062802002205200141206a2802004f0d00200520023703082005200436021020074100360220200520033602002006200541186a3602000c010b200141186a200741206a200741106a2007410c6a10370b2000200336020420002001360200200728022021012007410036022002402001450d00200110440b4100200741306a3602040bb80102017e017f4100410028020441106b220436020420002001360210200020022802042802002903003703002000420037030820022802002101410141c003100d200420004108100e1a410141c003100d2004410872200041086a4108100e1a2000200129030842808080808080d0ebf400200228020829030020002903002203200441101005360214024020032001290310540d00200141106a427e200342017c2003427d561b3703000b4100200441106a36020420000b090041b007200010400bb904010c7f02402001450d00024020002802c041220d0d004110210d200041c0c1006a41103602000b200141086a200141046a41077122026b200120021b210202400240024020002802c441220a200d4f0d002000200a410c6c6a4180c0006a21010240200a0d0020004184c0006a220d2802000d0020014180c000360200200d20003602000b200241046a210a034002402001280208220d200a6a20012802004b0d002001280204200d6a220d200d28020041808080807871200272360200200141086a22012001280200200a6a360200200d200d28020041808080807872360200200d41046a22010d030b2000104122010d000b0b41fcffffff0720026b2104200041c8c1006a210b200041c0c1006a210c20002802c8412203210d03402000200d410c6c6a22014180c0006a210620014184c0006a280200220541046a210d0340200520062802006a2107200d417c6a2208280200220941ffffffff07712101024020094100480d000240200120024f0d000340200d20016a220a20074f0d01200a280200220a4100480d012001200a41ffffffff07716a41046a22012002490d000b0b20082001200220012002491b200941808080807871723602000240200120024d0d00200d20026a200420016a41ffffffff07713602000b200120024f0d040b200d20016a41046a220d2007490d000b41002101200b4100200b28020041016a220d200d200c280200461b220d360200200d2003470d000b0b20010f0b2008200828020041808080807872360200200d0f0b41000b870501087f20002802c44121010240024041002d00fc48450d0041002802804921070c010b3f002107410041013a00fc48410020074110742207360280490b200721030240024002400240200741ffff036a41107622023f0022084d0d00200220086b40001a4100210820023f00470d0141002802804921030b41002108410020033602804920074100480d0020002001410c6c6a210220074180800441808008200741ffff037122084181f8034922061b6a2008200741ffff077120061b6b20076b2107024041002d00fc480d003f002103410041013a00fc48410020034110742203360280490b20024180c0006a210220074100480d01200321060240200741076a417871220520036a41ffff036a41107622083f0022044d0d00200820046b40001a20083f00470d0241002802804921060b4100200620056a360280492003417f460d0120002001410c6c6a22014184c0006a2802002206200228020022086a2003460d020240200820014188c0006a22052802002201460d00200620016a2206200628020041808080807871417c20016b20086a72360200200520022802003602002006200628020041ffffffff07713602000b200041c4c1006a2202200228020041016a220236020020002002410c6c6a22004184c0006a200336020020004180c0006a220820073602000b20080f0b02402002280200220820002001410c6c6a22034188c0006a22012802002207460d0020034184c0006a28020020076a2203200328020041808080807871417c20076b20086a72360200200120022802003602002003200328020041ffffffff07713602000b2000200041c4c1006a220728020041016a22033602c0412007200336020041000f0b2002200820076a36020020020b7b01037f024002402000450d0041002802f04822024101480d0041b0c70021032002410c6c41b0c7006a21010340200341046a2802002202450d010240200241046a20004b0d00200220032802006a20004b0d030b2003410c6a22032001490d000b0b0f0b2000417c6a2203200328020041ffffffff07713602000b3f01027f02402000410120001b2201103f22020d00034041002102410028028449220041003a00002000450d0120001104002001103f2202450d000b0b20020b0e0002402000450d00200010420b0b05001000000b840201057f024002400240024020002001460d00200128020420012d00002202410176200241017122041b2102200141016a210520012802082106410a2101024020002d00002203410171450d0020002802002203417e71417f6a21010b2006200520041b210520034101712104024002400240200220014d0d0020040d01200341fe017141017621030c020b20040d03200041016a210120020d040c050b200028020421030b20002001200220016b2003410020032002200510470b20000f0b200028020821012002450d010b200120052002100f1a0b200120026a41003a0000024020002d00004101710d00200020024101743a000020000f0b2000200236020420000bf70101037f0240416e20016b2002490d000240024020002d00004101710d00200041016a21090c010b200028020821090b416f210a0240200141e6ffffff074b0d00410b210a20014101742208200220016a220220022008491b2202410b490d00200241106a417071210a0b200a1043210202402004450d00200220092004100e1a0b02402006450d00200220046a20072006100e1a0b0240200320056b220320046b2207450d00200220046a20066a200920046a20056a2007100e1a0b02402001410a460d00200910440b200020023602082000200a4101723602002000200320066a2204360204200220046a41003a00000f0b1000000be20201067f0240200141704f0d00410a2102024020002d00002205410171450d0020002802002205417e71417f6a21020b0240024020054101710d00200541fe017141017621030c010b200028020421030b410a2104024020032001200320014b1b2201410b490d00200141106a417071417f6a21040b024020042002460d00024002402004410a470d0041012106200041016a210120002802082102410021070c010b200441016a104321010240200420024b0d002001450d020b024020002d000022054101710d0041012107200041016a2102410021060c010b2000280208210241012106410121070b0240024020054101710d00200541fe017141017621050c010b200028020421050b0240200541016a2205450d00200120022005100e1a0b02402006450d00200210440b02402007450d0020002003360204200020013602082000200441016a4101723602000f0b200020034101743a00000b0f0b1000000bd00101047f2001104f2102410a2105024020002d00002203410171450d0020002802002203417e71417f6a21050b20034101712104024002400240024002400240200220054d0d0020040d01200341fe017141017621030c020b20040d02200041016a210520020d030c040b200028020421030b20002005200220056b20034100200320022001104720000f0b200028020821052002450d010b200520012002100f1a0b200520026a41003a0000024020002d00004101710d00200020024101743a000020000f0b2000200236020420000b990101027f0240024020002d0000220641017122050d00200641017621060c010b200028020421060b02402004417f460d0020062001490d00200620016b2206200220062002491b21060240024020050d00200041016a21000c010b200028020821000b024020042006200620044b22051b2202450d00200020016a20032002104e2201450d0020010f0b417f200520062004491b0f0b1000000b05001000000bba0101037f20004200370200200041086a22034100360200024020012d00004101710d00200020012902003702002003200141086a28020036020020000f0b02402001280204220341704f0d00200128020821020240024002402003410b4f0d00200020034101743a0000200041016a210120030d010c020b200341106a4170712204104321012000200441017236020020002001360208200020033602040b200120022003100e1a0b200120036a41003a000020000f0b1000000bc40101047f20004200370200200041086a41003602000240200128020420012d00002208410176200841017122051b22082002490d00200820026b2208200320082003491b220341704f0d00200128020821060240024002402003410b4f0d00200020034101743a0000200041016a210820030d010c020b200341106a4170712207104321082000200741017236020020002008360208200020033602040b20082006200141016a20051b20026a2003100e1a0b200820036a41003a000020000f0b1000000b4901037f4100210502402002450d000240034020002d0000220320012d00002204470d01200141016a2101200041016a21002002417f6a22020d000c020b0b200320046b21050b20050b7a01027f20002102024002402000410371450d0020002102034020022d0000450d02200241016a22024103710d000b0b2002417c6a21020340200241046a22022802002201417f73200141fffdfb776a7141808182847871450d000b200141ff0171450d000340200241016a22022d00000d000b0b200220006b0b0300000b0bb506240041040b04906400000041100b04676574000041200b0572656164000041300b04706b3a000041c0000b0b6973206e6f7420677863000041d0000b08706179206c6f77000041e0000b336f626a6563742070617373656420746f206974657261746f725f746f206973206e6f7420696e206d756c74695f696e646578000041b0010b2363616e6e6f74207061737320656e64206974657261746f7220746f206d6f64696679000041e0010b1073616d6520706b20706c6179657221000041f0010b146a6f696e20612067616d6520726573756c743a00004190020b2e6f626a6563742070617373656420746f206d6f64696679206973206e6f7420696e206d756c74695f696e646578000041c0020b3363616e6e6f74206d6f64696679206f626a6563747320696e207461626c65206f6620616e6f7468657220636f6e747261637400004180030b3b757064617465722063616e6e6f74206368616e6765207072696d617279206b6579207768656e206d6f64696679696e6720616e206f626a656374000041c0030b067772697465000041d0030b3363616e6e6f7420637265617465206f626a6563747320696e207461626c65206f6620616e6f7468657220636f6e747261637400004190040b176572726f722072656164696e67206974657261746f72000041b0040b0230000041c0040b15737461727420612067616d6520726573756c743a000041e0040b0d6661696c2067616d65497472000041f0040b056661696c00004180050b0b6861732077696e6e657200004190050b0854494d454f5554000041a0050b09726573756c743a20000041b0050b0232000041c0050b0b6e6f2067616d65206964000041d0050b0974696d656f757421000041e0050b0b68616420766572696679000041f0050b023100004180060b023300004190060b1466616c736520616374696f6e20312f322f3321000041b0060b1166616c736520706b20706c6179657273000041d0060b0e6661696c207661206f72207662000041e0060b12736176652067616d6520726573756c743a00004180070b0d726f636b706170727363697300004190070b0c6973206e6f742073656c66000041a0070b0e68616420696e666f206461746100","code_version":"4218966ec7ad6e487d1b6eaca8be595bf66d9039b18e960a91a7207fd50d3f95","abi":{"version":"gxc::abi/1.0","types":[],"structs":[{"name":"game","base":"","fields":[{"name":"id","type":"uint64"},{"name":"start","type":"string"},{"name":"startHash","type":"string"},{"name":"startStr","type":"string"},{"name":"join","type":"string"},{"name":"joinHash","type":"string"},{"name":"joinStr","type":"string"},{"name":"winner","type":"string"},{"name":"dateline","type":"uint64"},{"name":"status","type":"string"}]},{"name":"player","base":"","fields":[{"name":"account","type":"uint64"},{"name":"play_id","type":"uint64"}]},{"name":"global_info","base":"","fields":[{"name":"id","type":"uint64"},{"name":"gameCount","type":"uint64"}]},{"name":"init","base":"","fields":[{"name":"id","type":"uint64"}]},{"name":"transfer","base":"","fields":[{"name":"memo","type":"string"}]},{"name":"verify","base":"","fields":[{"name":"id","type":"uint64"},{"name":"enstr","type":"string"},{"name":"account","type":"string"}]},{"name":"withdraw","base":"","fields":[{"name":"id","type":"uint64"},{"name":"account","type":"string"}]}],"actions":[{"name":"init","type":"init","payable":false},{"name":"transfer","type":"transfer","payable":true},{"name":"verify","type":"verify","payable":false},{"name":"withdraw","type":"withdraw","payable":false}],"tables":[{"name":"games","index_type":"i64","key_names":["id"],"key_types":["uint64"],"type":"game"},{"name":"players","index_type":"i64","key_names":["account"],"key_types":["uint64"],"type":"player"},{"name":"info","index_type":"i64","key_names":["id"],"key_types":["uint64"],"type":"global_info"}],"error_messages":[],"abi_extensions":[]},"owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["GXC8LKeAZ5DCq6YEtYx2zFj7YvBh7ZrGsEA3ZXNxDXCA8DJAxs8Kd",1]],"address_auths":[]},"active":{"weight_threshold":1,"account_auths":[],"key_auths":[["GXC8LKeAZ5DCq6YEtYx2zFj7YvBh7ZrGsEA3ZXNxDXCA8DJAxs8Kd",1]],"address_auths":[]},"options":{"memo_key":"GXC8LKeAZ5DCq6YEtYx2zFj7YvBh7ZrGsEA3ZXNxDXCA8DJAxs8Kd","voting_account":"1.2.5","num_witness":0,"num_committee":0,"votes":[],"extensions":[]},"statistics":"2.6.1093034","whitelisting_accounts":[],"blacklisting_accounts":[],"whitelisted_accounts":[],"blacklisted_accounts":[],"owner_special_authority":[0,{}],"active_special_authority":[0,{}],"top_n_control_flags":0},"table":"8419268397136609280","lower_id":0,"uppper_id":2,"limit":2}},{"context":{"level":"warn","file":"database_api_impl.cpp","line":181,"method":"get_table_rows","hostname":"","thread_name":"th_a","timestamp":"2019-01-11T02:27:52"},"format":"","data":{"contract":"rockpaprscis","table":"info"}},{"context":{"level":"warn","file":"websocket_api.cpp","line":125,"method":"on_message","hostname":"","thread_name":"th_a","timestamp":"2019-01-11T02:27:52"},"format":"","data":{"call.method":"call","call.params":[2,"get_table_rows",["rockpaprscis","info",0,2]]}}]}}}}
    th_a  state.cpp:38 handle_reply

    {"contract":"rockpaprscis","table":"info"}
    th_a  wallet.cpp:984 get_table_rows
locked >>> 

build issue

we are using ubuntu 14.4.5 for building, we almost build successfully, but got error as following, do you have any idea about this build issue? thanks!

collect2: error: ld returned 1 exit status
make[2]: *** [libraries/egenesis/embed_genesis] Error 1
make[1]: *** [libraries/egenesis/CMakeFiles/embed_genesis.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 83%] Building CXX object libraries/wallet/CMakeFiles/graphene_wallet.dir/api_documentation.cpp.o

get_required_fees failed with UIA to pay for calling contract

Describe the bug
get_required_fees failed with UIA to pay for calling contract

To Reproduce
when UIA exchange_rate < 1

curl --data '{"method":"call","params":[0,"get_required_fees",[[[75,{"fee":{"amount":"0","asset_id":"1.3.10"},"account":"1.2.268","contract_id":"1.2.881","amount":{"amount":"100000000","asset_id":"1.3.17"},"method_name":"invest","data":"","extensions":[]}]],"1.3.1"]],"id":156}'  https://testnet.gxchain.org

error msg:

{
	"id": 156,
	"jsonrpc": "2.0",
	"error": {
		"code": 1,
		"message": "Integer Divide By Zero:",
		"data": {
			"code": 21,
			"name": "divide_by_zero_exception",
			"message": "Integer Divide By Zero",
			"stack": [{
				"context": {
					"level": "error",
					"file": "safe.hpp",
					"line": 82,
					"method": "operator/",
					"hostname": "",
					"thread_name": "th_a",
					"timestamp": "2018-12-17T03:08:22"
				},
				"format": "",
				"data": {
					"a": 100,
					"b": 0
				}
			}, {
				"context": {
					"level": "warn",
					"file": "contract_evaluator.cpp",
					"line": 101,
					"method": "contract_exec",
					"hostname": "",
					"thread_name": "th_a",
					"timestamp": "2018-12-17T03:08:22"
				},
				"format": "",
				"data": {
					"op": {
						"fee": {
							"amount": 0,
							"asset_id": "1.3.10"
						},
						"account": "1.2.268",
						"contract_id": "1.2.881",
						"amount": {
							"amount": 100000000,
							"asset_id": "1.3.17"
						},
						"method_name": "invest",
						"data": "",
						"extensions": []
					},
					"billed_cpu_time_us": 0
				}
			}, {
				"context": {
					"level": "warn",
					"file": "contract_evaluator.cpp",
					"line": 240,
					"method": "do_apply",
					"hostname": "",
					"thread_name": "th_a",
					"timestamp": "2018-12-17T03:08:22"
				},
				"format": "",
				"data": {
					"op": {
						"fee": {
							"amount": 0,
							"asset_id": "1.3.10"
						},
						"account": "1.2.268",
						"contract_id": "1.2.881",
						"amount": {
							"amount": 100000000,
							"asset_id": "1.3.17"
						},
						"method_name": "invest",
						"data": "",
						"extensions": []
					}
				}
			}, {
				"context": {
					"level": "warn",
					"file": "evaluator.cpp",
					"line": 51,
					"method": "start_evaluate",
					"hostname": "",
					"thread_name": "th_a",
					"timestamp": "2018-12-17T03:08:22"
				},
				"format": "",
				"data": {}
			}, {
				"context": {
					"level": "warn",
					"file": "db_block.cpp",
					"line": 678,
					"method": "apply_operation",
					"hostname": "",
					"thread_name": "th_a",
					"timestamp": "2018-12-17T03:08:22"
				},
				"format": "",
				"data": {
					"op": [75, {
						"fee": {
							"amount": 0,
							"asset_id": "1.3.10"
						},
						"account": "1.2.268",
						"contract_id": "1.2.881",
						"amount": {
							"amount": 100000000,
							"asset_id": "1.3.17"
						},
						"method_name": "invest",
						"data": "",
						"extensions": []
					}]
				}
			}, {
				"context": {
					"level": "warn",
					"file": "db_block.cpp",
					"line": 664,
					"method": "_apply_transaction",
					"hostname": "",
					"thread_name": "th_a",
					"timestamp": "2018-12-17T03:08:22"
				},
				"format": "",
				"data": {
					"trx": {
						"ref_block_num": 0,
						"ref_block_prefix": 0,
						"expiration": "2018-12-17T03:08:51",
						"operations": [
							[75, {
								"fee": {
									"amount": 0,
									"asset_id": "1.3.10"
								},
								"account": "1.2.268",
								"contract_id": "1.2.881",
								"amount": {
									"amount": 100000000,
									"asset_id": "1.3.17"
								},
								"method_name": "invest",
								"data": "",
								"extensions": []
							}]
						],
						"extensions": [],
						"signatures": []
					}
				}
			}, {
				"context": {
					"level": "warn",
					"file": "db_block.cpp",
					"line": 231,
					"method": "push_transaction",
					"hostname": "",
					"thread_name": "th_a",
					"timestamp": "2018-12-17T03:08:22"
				},
				"format": "",
				"data": {
					"trx": {
						"ref_block_num": 0,
						"ref_block_prefix": 0,
						"expiration": "2018-12-17T03:08:51",
						"operations": [
							[75, {
								"fee": {
									"amount": 0,
									"asset_id": "1.3.10"
								},
								"account": "1.2.268",
								"contract_id": "1.2.881",
								"amount": {
									"amount": 100000000,
									"asset_id": "1.3.17"
								},
								"method_name": "invest",
								"data": "",
								"extensions": []
							}]
						],
						"extensions": [],
						"signatures": []
					}
				}
			}, {
				"context": {
					"level": "warn",
					"file": "websocket_api.cpp",
					"line": 125,
					"method": "on_message",
					"hostname": "",
					"thread_name": "th_a",
					"timestamp": "2018-12-17T03:08:22"
				},
				"format": "",
				"data": {
					"call.method": "call",
					"call.params": [0, "get_required_fees", [
						[
							[75, {
								"fee": {
									"amount": "0",
									"asset_id": "1.3.10"
								},
								"account": "1.2.268",
								"contract_id": "1.2.881",
								"amount": {
									"amount": "100000000",
									"asset_id": "1.3.17"
								},
								"method_name": "invest",
								"data": "",
								"extensions": []
							}]
						], "1.3.1"
					]]
				}
			}]
		}
	}
}

安卓app没有账户的数字id

初学者入门,按照教程使用witness_node时,使用安卓app找了半天没有发现有数字账号。这个和文档里面的说明不符,后来从网页上重新注册了一个钱包才有数字账户
希望能够对app改进

同步区块报错

Describe the bug
同步到 15619273块就报错
{}
th_a fork_database.cpp:91 _push_block fork_database.cpp:68
2018-12-21T09:47:57 th_a:invoke handle_block push_block ] Pushing block to fork database that failed to link, block_id: 00ef2373eb419e9c991de023465938509093f7cc, block_num: 15672179 fork_database.cpp:69
2018-12-21T09:47:57 th_a:invoke handle_block push_block ] fork db head block_num: 15619273, block_id: 00ee54c96a6f80db71450d153570095ec20cf3f9 fork_database.cpp:70
2018-12-21T09:47:57 th_a:invoke handle_block handle_block ] Error when pushing block:
3080000 unlinkable_block_exception: unlinkable block
block does not link to known chain
{}
th_a fork_database.cpp:91 _push_block

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Your GXChain Wallet Account
Please leave your GXChain wallet account for bug bounty .

add stealth contract api

add the following api to support contract stealth transaction:

  1. verify_commitment
  2. verify_range
  3. verify_balance

Synchronization is too slow and only few nodes keep connection.

Describe the bug
A clear and concise description of what the bug is.
the title is the problem what I have.
Should I set another configurations like seed-node?

Another question. Which one is most correct technical document?

  1. https://doc.gxb.io/gxchain/
  2. https://github.com/gxchain/gxb-core/wiki
  3. https://github.com/gxchain/docs

To Reproduce
Steps to reproduce the behavior:

  1. run witness_node and start synchronize(first run)

$ ./bin/witness_node --data-dir=./witness_node_data_dir --rpc-endpoint=127.0.0.1:28090 --p2p-endpoint=0.0.0.0:6789 --log-file --track-account ""1.2.1004580"" --partial-operations=true --max-ops-per-account=100 --plugins account_history

  1. I checked the correct log in witness.log

tail -f witness_node_data_dir/logs/witness.log
1233382ms th_a application.cpp:497 handle_block ] Got block: #9850000 time: 2018-05-28T01:46:15 transaction(s): 8 latency: 18963258382 ms from: miner8 irreversible: 9849980 (-20)
1574439ms th_a application.cpp:497 handle_block ] Got block: #9860000 time: 2018-05-28T10:13:54 transaction(s): 19 latency: 18933140439 ms from: aaron irreversible: 9859985 (-15)
1908886ms th_a application.cpp:497 handle_block ] Got block: #9870000 time: 2018-05-28T18:41:33 transaction(s): 4 latency: 18903015886 ms from: kairos irreversible: 9869985 (-15)
2218693ms th_a application.cpp:497 handle_block ] Got block: #9880000 time: 2018-05-29T03:09:03 transaction(s): 5 latency: 18872875693 ms from: miner5 irreversible: 9879982 (-18)
2534839ms th_a application.cpp:497 handle_block ] Got block: #9890000 time: 2018-05-29T11:36:42 transaction(s): 13 latency: 18842732838 ms from: sakura irreversible: 9889982 (-18)
2850859ms th_a application.cpp:497 handle_block ] Got block: #9900000 time: 2018-05-29T20:04:21 transaction(s): 1 latency: 18812589859 ms from: david12 irreversible: 9899980 (-20)
3163127ms th_a application.cpp:497 handle_block ] Got block: #9910000 time: 2018-05-30T04:32:00 transaction(s): 9 latency: 18782443127 ms from: miner11 irreversible: 9909985 (-15)
....

  1. But synchronization is too slow.. It's been over 6 hours since I started witness_node,
    also I check connection status by using lsof
    $ lsof -i -nP
    witness_n 9239 gxs 10u IPv4 59609 0t0 TCP *:6789 (LISTEN)
    witness_n 9239 gxs 12u IPv4 134725 0t0 TCP 10.0.2.15:6789->47.104.0.35:6789 (ESTABLISHED)
    witness_n 9239 gxs 16u IPv4 134728 0t0 TCP 10.0.2.15:6789->47.74.22.124:6789 (ESTABLISHED)
    witness_n 9239 gxs 19u IPv4 44561 0t0 TCP 127.0.0.1:28090 (LISTEN)
    witness_n 9239 gxs 22u IPv4 134767 0t0 TCP 10.0.2.15:6789->47.75.71.70:6789 (CLOSE_WAIT)
    witness_n 9239 gxs 23u IPv4 134768 0t0 TCP 10.0.2.15:6789->178.128.59.227:33603 (CLOSE_WAIT)
    witness_n 9239 gxs 24u IPv4 134769 0t0 TCP 10.0.2.15:6789->47.75.148.12:6789 (CLOSE_WAIT)
    witness_n 9239 gxs 25u IPv4 134770 0t0 TCP 10.0.2.15:6789->47.254.146.219:6789 (CLOSE_WAIT)

Only few node established and another nodes disconnect as soon as it's connected.

  1. I checked P2P.log

It keeps print out following error message

$ tail -f witness_node_data_dir/logs/p2p/p2p.log
2019-01-02T14:26:09 p2p:message read_loop read_loop ] disconnected 0 exception: unspecified
Bad file descriptor
{"message":"Bad file descriptor"}
asio asio.cpp:41 operator()

{"len":16}
p2p  stcp_socket.cpp:117 readsome                   message_oriented_connection.cpp:205

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
    CentOS 7 1804
    SSD 200GB
    32GB RAM
    4 cores
    Giga speed internet

  • Browser [e.g. chrome, safari]

  • Version [e.g. 22]
    $ ./bin/witness_node --version
    Version: v1.0.181212
    SHA: 7b6209f
    Timestamp: 21 days ago
    SSL: OpenSSL 1.0.2p 14 Aug 2018
    Boost: 1.67
    Websocket++: 0.7.0

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Your GXChain Wallet Account
Please leave your GXChain wallet account for bug bounty .

Building Error

Dev env

  1. ubuntu 14.04
  2. gcc 5.4.1
  3. boost 1.57.0
  4. cmake 2.8.12.2

What I did

  1. git clone https://github.com/gxchain/gxb-core.git
  2. cd gxb-core
  3. git submodule update --init --recursive
  4. git checkout master
  5. mkdir build && cd build
  6. cmake -DOPENSSL_ROOT_DIR=/usr/bin -DOPENSSL_INCLUDE_DIR=/usr/include/openssl -DOPENSSL_LIBRARIES=/usr/lib/openssh -DCMAKE_BUILD_TYPE=RelWithDebInfo .. && make -j4

Building errors

[ 63%] Building CXX object libraries/fc/tests/CMakeFiles/all_tests.dir/utf8_test.cpp.o
Linking CXX executable all_tests
../libfc.a(filesystem.cpp.o): In function _ZN5boost10filesystem4pathC4INS0_15directory_entryEEERKT_PNS_9enable_ifINS0_11path_traits11is_pathableINS_5decayIS4 _E4typeEEEvE4typeE': /usr/include/boost/filesystem/path.hpp:140: undefined reference to boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::s
tring&)'
/usr/include/boost/filesystem/path.hpp:140: undefined reference to boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::s tring&)' /usr/include/boost/filesystem/path.hpp:140: undefined reference to boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::s
tring&)'
collect2: error: ld returned 1 exit status
make[2]: *** [libraries/fc/tests/all_tests] Error 1
make[1]: *** [libraries/fc/tests/CMakeFiles/all_tests.dir/all] Error 2
make: *** [all] Error 2

同步区块的时候,出现fork,不能正常同步

Describe the bug
A clear and concise description of what the bug is.

    {"new_block":{"previous":"00dbd78851944e15bdb3cf23ed1605ab8644b6bb","timestamp":"2018-11-06T03:49:57","witness":"1.6.30","transaction_merkle_root":"56112bbe84a1e6a43e432a05fd575813bdd8ddfc","extensions":[],"witness_signature":"205075c7d47a3e4c0f934939e83f885a1e9927b92316f51f9850b011eddc80fd8c055c27dba27a9732613955cbcb57a530d4c972de8650ae2feb643a55f9c3fc52","transactions":[{"ref_block_num":55176,"ref_block_prefix":357471313,"expiration":"2018-11-06T03:50:24","operations":[[73,{"proxy_memo":"QmXgJWdoWQwNc5TSwp6HnmbdRe3xPaGgZ82PhQMGdKoTGB","fee":{"amount":1,"asset_id":"1.3.5"},"request_params":{"from":"1.2.3378","to":"1.2.46","proxy_account":"1.2.693712","amount":{"amount":300000,"asset_id":"1.3.5"},"percentage":1000,"memo":"dcd96ca0b4cce5c3ee385173860b895b","expiration":"2018-11-06T04:19:51","signatures":["2049bb740d16ddd9a2f471fd000a067ca3e168e2453e13d3c8d53805e64c1fd4641a246bfb6f57ba411739afa6c3475fefd549c605ad1d6aaaed2f43725ff4ca7d"]},"extensions":[]}]],"extensions":[],"signatures":["1b1a001a984a701352f94a542bb59a1cf53793861c8597c56774bff89a8eb07def56256858032dca3fa02b347d0e77b52f042ffcedcababd6b26f7a0e077068be2"],"operation_results":[[0,{}]]}]}}
    th_a  db_block.cpp:212 _push_block
792650ms th_a       fork_database.cpp:68          push_block           ] Pushing block to fork database exception:
3080000 unlinkable_block_exception: unlinkable block
block does not link to known chain
    {}
    th_a  fork_database.cpp:91 _push_block
792650ms th_a       fork_database.cpp:69          push_block           ] Pushing block to fork database that failed to link, block_id: 00dbd78ae3fd4ca932a790da3a8b809ac90c4171, block_num: 14407562
792650ms th_a       fork_database.cpp:70          push_block           ] fork db head block_num: 14407519, block_id: 00dbd75ff415c91b770c9a3d407198ec6a00fb51
792651ms th_a       application.cpp:525           handle_block         ] Error when pushing block:
3080000 unlinkable_block_exception: unlinkable block
block does not link to known chain
    {}
    th_a  fork_database.cpp:91 _push_block

    {"new_block":{"previous":"00dbd789559096f3798707cda20bd8a376428748","timestamp":"2018-11-06T03:50:00","witness":"1.6.13","transaction_merkle_root":"f3353fd7def076d890801d9f6b667e398c274284","extensions":[],"witness_signature":"1f17eadfe541fbcf482e60bdfd73f7e2785f1d684e75f7cb72d3d765fd021581db231ef6b8a348168354732d6802f5f5e852ed0f45f6d16ffaf184ab79ebe707d9","transactions":[{"ref_block_num":55177,"ref_block_prefix":4086730837,"expiration":"2018-11-06T03:50:35","operations":[[73,{"proxy_memo":"QmS6DPYzw1PWsRzbo1b53AMzw7YT5h97QRsaPVjoez1tEp","fee":{"amount":1,"asset_id":"1.3.5"},"request_params":{"from":"1.2.3378","to":"1.2.46","proxy_account":"1.2.693712","amount":{"amount":300000,"asset_id":"1.3.5"},"percentage":1000,"memo":"37865d4cde668e3de9935c936f21cfb6","expiration":"2018-11-06T04:19:55","signatures":["20799a2481b09f0344e35c71990552f76cbb616c21cb5870efe2f6e0d71998d41a64d3c8d8cb0a749879535a1c26388e47f47b801208628edb67e33f7587fee2b8"]},"extensions":[]}]],"extensions":[],"signatures":["1c6c74a10b10cc7c4fcdb566d073e5b91d607cb0618b3c6f4ad02f7a77b1eb63c6524d9b05c5c234aa855ce08c89afbe47fda3a5fcb28f5214085b4ffd4e9bf7fd"],"operation_results":[[0,{}]]}]}}
    th_a  db_block.cpp:212 _push_block
792652ms th_a       fork_database.cpp:68          push_block           ] Pushing block to fork database exception:
3080000 unlinkable_block_exception: unlinkable block
block does not link to known chain
    {}
    th_a  fork_database.cpp:91 _push_block
792652ms th_a       fork_database.cpp:69          push_block           ] Pushing block to fork database that failed to link, block_id: 00dbd78b585669228e7333c94b68caa7affd1860, block_num: 14407563
792652ms th_a       fork_database.cpp:70          push_block           ] fork db head block_num: 14407519, block_id: 00dbd75ff415c91b770c9a3d407198ec6a00fb51
792654ms th_a       application.cpp:525           handle_block         ] Error when pushing block:
3080000 unlinkable_block_exception: unlinkable block
block does not link to known chain
    {}
    th_a  fork_database.cpp:91 _push_block

    {"new_block":{"previous":"00dbd78ae3fd4ca932a790da3a8b809ac90c4171","timestamp":"2018-11-06T03:50:12","witness":"1.6.21","transaction_merkle_root":"2384336b4314a20c6d4c7d2861a1625790f5f516","extensions":[],"witness_signature":"1f71347fe96aaae773985c7384e29e9de5aebd4819f1c6ecd4f260e518bb9d381b40a62b70810bc138ad3722c6f9d082ba7d59b534dd9491a98fc196e58affa7b6","transactions":[{"ref_block_num":55178,"ref_block_prefix":2840395235,"expiration":"2018-11-06T03:50:31","operations":[[73,{"proxy_memo":"QmXApXxj4jcmiSmLc8qmWDYAek6GgczXgLsmRP3Kd4skLC","fee":{"amount":1,"asset_id":"1.3.5"},"request_params":{"from":"1.2.3499","to":"1.2.3293","proxy_account":"1.2.693712","amount":{"amount":50000,"asset_id":"1.3.5"},"percentage":1000,"memo":"6807b574f43b63a6b48e6b67ac01af88","expiration":"2018-11-06T04:20:03","signatures":["200431aa597a38ed94ae6f9d3d7eb798cc701ebc0192b8c243e11d4d1b9c999c6319aa64e1d085a3b9f51a1bc056b5675fbf97be89e99a03a8c57d451dfc22c4fe"]},"extensions":[]}]],"extensions":[],"signatures":["1c2813ceca6842d55ed0c570c2bbf8118b8a51f59d76a1ab25d48304cf4e48eea4564f45ab2af06ffd37b63662cff109de3b305c1413ad7aeca0a250dcdc8966f8"],"operation_results":[[0,{}]]},{"ref_block_num":55178,"ref_block_prefix":2840395235,"expiration":"2018-11-06T03:50:36","operations":[[73,{"proxy_memo":"Qmf6q11BwM77u5XWRymt3KPo4docWroAME8LKxGMgoEZ74","fee":{"amount":1,"asset_id":"1.3.5"},"request_params":{"from":"1.2.3500","to":"1.2.46","proxy_account":"1.2.693712","amount":{"amount":10000,"asset_id":"1.3.5"},"percentage":1000,"memo":"ed34f8facb86c3a86dfa65684c7747de","expiration":"2018-11-06T04:20:03","signatures":["203835c4fcc2bf51c724de0ec4b831bc886ab8006ec665a387789743b11144f25120a4831290c9dec9ca9ddd870828097a0e32d5404effb7ab79a0ed99df2522dc"]},"extensions":[]}]],"extensions":[],"signatures":["1c7815cc8e55174d54d91bab59141230add6490c4d8ba40044a11ccdf6e88506905222820b6223b3da08cef0e8953efba1c353c9767d4ba8da5aa8d4b4aa1403ca"],"operation_results":[[0,{}]]},{"ref_block_num":55178,"ref_block_prefix":2840395235,"expiration":"2018-11-06T03:50:37","operations":[[73,{"proxy_memo":"QmTVgCXuRj19bmeMmHvPGAyUSNsLiE7xSnKmYFysG4vmvo","fee":{"amount":1,"asset_id":"1.3.5"},"request_params":{"from":"1.2.3855","to":"1.2.46","proxy_account":"1.2.693712","amount":{"amount":10000,"asset_id":"1.3.5"},"percentage":1000,"memo":"fd6bab646c76550e6dff9292115ba7da","expiration":"2018-11-06T04:20:01","signatures":["1f740095c678dd2eed325cbee037f16513dccf4308c62205a1aa9f54b2f1fc9f1c49c5b506523b9749a05aabe35f3dbba888728bb0fd0a2445e93b069fa9346ab8"]},"extensions":[]}]],"extensions":[],"signatures":["1b5d078af5414bf857f0316e3133f6b9ce801e5804f2b57a14e498861893aafab52a47ded549b9badf3ea1ca0d0e25e89c2da44873b37c2e220dc3d5f35919d625"],"operation_results":[[0,{}]]},{"ref_block_num":55178,"ref_block_prefix":2840395235,"expiration":"2018-11-06T03:50:41","operations":[[73,{"proxy_memo":"QmaW9TxhXGxUrF4f2eaT8gmsi8bwsvNn5687PJAkYEgNTQ","fee":{"amount":1,"asset_id":"1.3.5"},"request_params":{"from":"1.2.3855","to":"1.2.3293","proxy_account":"1.2.693712","amount":{"amount":50000,"asset_id":"1.3.5"},"percentage":1000,"memo":"84668c8a7e6df09ae3bb8981fb37542d","expiration":"2018-11-06T04:20:03","signatures":["203a7de4a94851778a0c4b82390113a1e52824abd328ff96244605577c071d61225811b3f63d7ffa44a44a0a4874187ab122edb154b3dd8c9240c3412e91c79636"]},"extensions":[]}]],"extensions":[],"signatures":["1b0a6f1a2d4b571b3d45a16ccf1944986a75dc22da66dc78e0bc27fdf2bdcf9fcb0e26268797da6c9c8d5b057262c68c366eff49df43977f66d2094d9c0b4de710"],"operation_results":[[0,{}]]}]}}
    th_a  db_block.cpp:212 _push_block

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
./programs/witness_node/witness_node --data-dir=/data --rpc-endpoint=0.0.0.0:50000
  1. Click on '....'
  2. Scroll down to '....'
  3. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Your GXChain Wallet Account
Please leave your GXChain wallet account for bug bounty .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.