-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task 40: FBbatis:Fisco bcos 预编译合约 + Springboot 的数据库 ORM 框架示例 #3072
base: dev-2.0
Are you sure you want to change the base?
Conversation
<perf>(shceduler,preconpiled,ledger): perf log, add block number macro log definition.
…xy (FISCO-BCOS#2670) * add stop for scheduler (FISCO-BCOS#2636) * modify tars proxy and add tars servant proxy callback * add _without_tars_framework and tars sevice support create client proxy by endpoints * update build_chain.py support build tars install package without tars framework Co-authored-by: XingQiang Bai <bxq2011hust@qq.com>
…ug, perf scheduler and sync log.
* remove pbft depends to scheduler * recover group-signature/ring-signature precompiled * fix ut for bcos-pbft
<fix&perf>(scheduler,sync,executor): fix smallbank use cachestorage bug, perf scheduler and sync log.
* Add check-commit && update CI name * update scripts
…& call return blockNumber (FISCO-BCOS#2834) Co-authored-by: cyjseagull <yujiechen_hust@163.com>
* only recoverState when the node enableAsMasterNode * remove build cache from ci
…SCO-BCOS#2854) * fix every pbftCache owns a timer caused too-many-file opens error * use fastSM2Crypto
…g logic (FISCO-BCOS#2857) * Add executor waiting logic * Update check and clear cache logic * update shell message * update executor waiting logic
…-BCOS#2863) * Bugfix: Clear block cache * update execute stop logic * free lock
…SCO-BCOS#2869) * update log and ci * fix m_blocks is null bug * update workflow * fix dir * setup jdk
* fix m_blocks empty bug * tikv off * update ci check * use cache file * add uuid runtime and java * add distribution * jdk
* reject message from the outside-group && not access db when txs-missed * not request the checkPoint far-higher than the committedIndex
* modify timeout for front * modify thread for tars * modify install jdk
* only reset masterState to be true when init success * fix nodeInfo not updated bug
* rm arm jdk * install java
Release 3.0.1 sync code
deleted: fbbatis/fbbatis/fbbatis/target/maven-archiver/pom.properties deleted: fbbatis/fbbatis/fbbatis/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst deleted: fbbatis/fbbatis/fbbatis/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst deleted: fbbatis/fbbatis/fbbatis/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
QI3PmO2RQ+Te90jWrWv4dOdh5bccSgWISXofwcOTm+aDjUjFd+EEzpdk7TcXZy7Z | ||
/LQEdCH4g9BPR/0Cytf4DK3fLMw3iscxD+5hQWoyfL7I01RVA47hckNU1wsR57bS | ||
6UjIoITMiMTZU9Wn34mz8bQO9rV6lirKCm7W7+7nCDdaCowJWBDG+9hLaDWVxodq | ||
Thn/Zxj3jZcu47DQgpeGs5Ob0gDWFkzr3N4NAgMBAAGjUzBRMB0GA1UdDgQWBBT9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Misspell] "Thn" is a misspelling of "Then" (view)
Rule | Correct | Incorrect |
---|---|---|
Then |
Then | Thn |
You can close this issue if no need to fix it. Learn more.
auto currentBlockNumber = getCurrentBlockNumber(); | ||
if (currentBlockNumber + 1 != requestBlockNumber) | ||
{ | ||
// happens in some multi-thread scenario, the block has been commited |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Misspell] "commited" is a misspelling of "committed" (view)
Rule | Correct | Incorrect |
---|---|---|
committed |
committed | commited |
You can close this issue if no need to fix it. Learn more.
|
||
#pragma once | ||
|
||
char originBinary[] = "@CMAKE_CURRENT_SOURCE_DIR@/../wasm/infinit_loop.wasm"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Misspell] "infinit" is a misspelling of "infinite" (view)
Rule | Correct | Incorrect |
---|---|---|
infinite |
infinite | infinit |
You can close this issue if no need to fix it. Learn more.
#pragma once | ||
|
||
char originBinary[] = "@CMAKE_CURRENT_SOURCE_DIR@/../wasm/infinit_loop.wasm"; | ||
char useGasBinary[] = "@CMAKE_CURRENT_SOURCE_DIR@/../wasm/metric_infinit_loop_useGas.wasm"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Misspell] "infinit" is a misspelling of "infinite" (view)
Rule | Correct | Incorrect |
---|---|---|
infinite |
infinite | infinit |
You can close this issue if no need to fix it. Learn more.
|
||
char originBinary[] = "@CMAKE_CURRENT_SOURCE_DIR@/../wasm/infinit_loop.wasm"; | ||
char useGasBinary[] = "@CMAKE_CURRENT_SOURCE_DIR@/../wasm/metric_infinit_loop_useGas.wasm"; | ||
char globalGasBinary[] = "@CMAKE_CURRENT_SOURCE_DIR@/../wasm/metric_infinit_loop_global_gas.wasm"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Misspell] "infinit" is a misspelling of "infinite" (view)
Rule | Correct | Incorrect |
---|---|---|
infinite |
infinite | infinit |
You can close this issue if no need to fix it. Learn more.
@@ -0,0 +1,28 @@ | |||
-----BEGIN PRIVATE KEY----- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Secret Scan] It may be dangerous to commit the SSH private key. (view)
Rule | Severity |
---|---|
sider.secrets.ssh.private_key |
warning |
You can close this issue if no need to fix it. Learn more.
utilities.log_info("* output dir: " + output_dir) | ||
|
||
if os.path.exists(output_dir): | ||
utilities.log_info( output_dir + " already exists, please switch directory or remove it after confirm the directory is no longer in use") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Flake8] whitespace after '(' (view)
Rule |
---|
E201 |
You can close this issue if no need to fix it. Learn more.
from common.utilities import ServiceInfo | ||
import toml | ||
import os | ||
import uuid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Flake8] 'uuid' imported but unused (view)
Rule |
---|
F401 |
You can close this issue if no need to fix it. Learn more.
from command.node_command_impl import NodeCommandImpl | ||
from command.monitor_command_impl import MonitorCommandImpl | ||
from networkmgr.network_manager import NetworkManager | ||
from controller.node_controller import NodeController |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Flake8] 'controller.node_controller.NodeController' imported but unused (view)
Rule |
---|
F401 |
You can close this issue if no need to fix it. Learn more.
@@ -0,0 +1,394 @@ | |||
#!/usr/bin/python | |||
# -*- coding: UTF-8 -*- | |||
import json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Flake8] 'json' imported but unused (view)
Rule |
---|
F401 |
You can close this issue if no need to fix it. Learn more.
fbbatis
FBbatis 是一款针对 Fisco bcos 预编译合约 + Springboot 的数据库 ORM 框架。借鉴于 MyBatis plus 的使用习惯进行开发。
Fisco内置两种表合约说明
FISCO BCOS 2.0受以太坊内置合约启发,实现了一套预编译合约框架,FISCO BCOS平台目前内置两类预编译合约接口,KVTable合约的读写接口和Table合约的CRUD接口。
fbbatis操作类说明
fbbatis也提供两种对应的操作,模拟关系型的Table和非关系型的KVTable操作,
sdk配置说明
实体映射
DataTable相关Api
DataSet相关Api
测试示例
DataTable测试示例
DataSet测试示例
相关资料