This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"context" | |
"encoding/hex" | |
"flag" | |
"fmt" | |
"github.com/libp2p/go-libp2p" | |
"github.com/libp2p/go-libp2p-core/crypto" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright Soramitsu Co., Ltd. All Rights Reserved. | |
* SPDX-License-Identifier: Apache-2.0 | |
*/ | |
#include <chrono> | |
#include <iostream> | |
#include <memory> | |
#include <spdlog/sinks/stdout_color_sinks.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
git clone https://github.com/hyperledger/iroha.git | |
docker network create iroha-network | |
docker run --name some-postgres \ | |
--network='iroha-network' \ | |
-e POSTGRES_USER=postgres \ | |
-e POSTGRES_PASSWORD=mysecretpassword \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from iroha import Iroha, IrohaCrypto, IrohaGrpc | |
import binascii | |
admin_private = '85025c609c7cf82c1e8d6f398bdb28f6b799a49874e9215a3835df0c92c9ec14' | |
iroha = Iroha('admin@hoge') | |
net = IrohaGrpc('localhost:50051') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright Soramitsu Co., Ltd. All Rights Reserved. | |
* SPDX-License-Identifier: Apache-2.0 | |
*/ | |
#include "pending_txs_storage/impl/pending_txs_storage_impl.hpp" | |
#include <sstream> | |
#include "interfaces/transaction.hpp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "obj_counter.hpp" | |
class Block : public ::google::protobuf::Message, public ::ObjCounter<Block> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright Soramitsu Co., Ltd. All Rights Reserved. | |
* SPDX-License-Identifier: Apache-2.0 | |
*/ | |
#ifndef IROHA_OBJ_COUNTER_HPP | |
#define IROHA_OBJ_COUNTER_HPP | |
#include <atomic> | |
#include <iostream> | |
#include <mutex> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================[ Build | combine_latest_until_first_completed_test | Debug ]==== | |
"/Users/igor/Library/Application Support/JetBrains/Toolbox/apps/CLion/ch-0/183.5429.37/CLion.app/Contents/bin/cmake/mac/bin/cmake" --build /Users/igor/cpp/iroha/cmake-build-debug --target combine_latest_until_first_completed_test -- -j8 | |
[ 66%] Built target google_test | |
[100%] Built target reactive_extensions_rxcpp | |
[100%] Building CXX object test/module/libs/common/CMakeFiles/combine_latest_until_first_completed_test.dir/combine_latest_until_first_completed_test.o | |
In file included from /Users/igor/cpp/iroha/test/module/libs/common/combine_latest_until_first_completed_test.cpp:11: | |
In file included from /usr/local/include/boost/variant.hpp:17: | |
/usr/local/include/boost/variant/variant.hpp:387:9: error: destructor called on non-final 'IntervalObservebleHelper' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor] | |
operand.~T(); // must be noexcept | |
^ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from iroha import Iroha, IrohaCrypto, IrohaGrpc | |
import uuid | |
import binascii | |
address = 'localhost:50051' | |
admin_key = 'f101537e319568c765b2cc89698325604991dca57b9716b58016b253506cab70' | |
admin_id = 'admin@test' | |
domain = admin_id.split('@')[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Copyright Soramitsu Co., Ltd. All Rights Reserved. | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
import sys | |
if sys.version_info[0] < 3: | |
raise Exception('Python 3 or a more recent version is required.') |