1 Star 0 Fork 0

jdcloud-bds / bds-xlm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

bds-xlm

logo

介绍

bds-xlm 是开源项目区块链数据服务(BDS)的其中一个独立模块 - 提供全节点数据推送服务。

bds-xlm 基于 stellar/go 的 horizon-v0.22.1 版本进行二次开发,支持直接将新增的区块数据往消息中间件服务 kafka 发送,方便上游的服务来订阅消费。在运行horizon之前需要参照stellar/core v12.1.0进行编译安装。

架构

架构

环境部署

安装 BDS-XLM

环境初始化

build-unix

运行步骤

1.编译

  dep ensure -v
  go build -v $GOPATH/src/github.com/stellar/go/services/horizon

2.运行全节点,并支持向 kafka 发送消息

  ./horizon --ingest --port <port> --kafka=true --kafka-proxy-host=<kafka host> --kafka-proxy-port=<kafka port> --kafka-topic=<kafka topic>

安装 confluent 和 kafka

安装kafka

参见 kafka 官网

修改 config/server.properties 文件

  • message.max.bytes=1048576000

安装 confluent

参见 confluent

解压缩 confluent 安装包并运行Confluent Rest Proxy

修改 /etc/kafka-rest/kafka-rest.properties 文件

  • max.request.size = 1048576000
  • buffer.memory = 1048576000
  • send.buffer.bytes = 1048576000

安装 BDS

参见BDS

数据库

我们现在支持 SQL server 和 PostgreSQL 两种数据库,您可以选择其中一种作为数据存储方法。

SQL Server

购买 云数据库 SQL Server

PostgreSQL

购买 云数据库 PostgreSQL

安装 Grafana

参见 Grafana 官网

新增功能

  1. 增加了向 kafka 发送消息的新功能(每次一个新块被全节点同步时,该块的数据将以定制的数据结构被发送到 kafka 中)
  2. sendblock 和 sendbatchblock 是新添加的两个 RPC 接口,用于触发全节点发送特定块的数据。

源代码修改历史记录

bds-xlm

贡献

贡献指南

开源许可

Apache License 2.0

项目展示

区块链数据服务

Copyright 2016 Stellar Development Foundation and contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 As well as the file LICENSE-APACHE.txt adjacent to this file. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

将 XLM 区块链数据同步到消息队列中,供上游服务消费 展开 收起
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/jdcloud-bds/bds-xlm.git
git@gitee.com:jdcloud-bds/bds-xlm.git
jdcloud-bds
bds-xlm
bds-xlm
master

搜索帮助