摘要: 1. 打包 .aad 包 1. flutter 打 .add 命令 flutter build appbundle 2. Android studio Build -> Build App Bundle 打包出来 .aab 包 2. 转换与安装 使用 bundletool 工具 参考文章 2.1 将 阅读全文
posted @ 2021-11-05 22:44 ytymz 阅读(1425) 评论(0) 推荐(1) 编辑
摘要: 1. 条件查询特定数据 db.getCollection('table_name').find({'age':20}) 翻译:查询 table_name 表中 age 字段的值等于 20 的所有数据。 2. 条件统计数据总个数 db.getCollection('table_name').find( 阅读全文
posted @ 2020-01-16 15:42 ytymz 阅读(2467) 评论(0) 推荐(0) 编辑
摘要: BTC 交易地址规则 一下代码是 Golang 判断是否是一个合法的 BTC 交易地址。 import "strings"// 返回 true 为合法 BTC 交易地址func IsValidBtcAddress(address string) bool { len := len(address) 阅读全文
posted @ 2020-01-03 18:33 ytymz 阅读(711) 评论(0) 推荐(0) 编辑
摘要: 1. 地址开头规则目前主要有 1、3 和 bc1 开头- 1 开头的地址,是 P2PKH(pay-to-public-key-hash)地址,也就是最原始的地址,称之为普通的 BTC 地址;- 3 开头的地址,是 P2SH(pay-to-script-hash)地址,内部也需要是 segwit,即隔 阅读全文
posted @ 2020-01-03 15:09 ytymz 阅读(3102) 评论(1) 推荐(0) 编辑
摘要: Go 实现 Omni Rpc 接口交互 1. Rpc 接口实现 package netimport ( "bytes" "errors" "io/ioutil" "net/http" "time" "github.com/astaxie/beego")var userName stringvar u 阅读全文
posted @ 2019-12-02 12:03 ytymz 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 1. RPC 要求使用 POST 请求 2. 交互协议为 Json 格式 3. 请求地址组成 http://[节点 ip]:[rpc 端口号],如:http://172.30.143.249:8336 4. 添加接口认证 5. 请求参数 {"jsonrpc":"2.0", "method": "om 阅读全文
posted @ 2019-12-02 11:55 ytymz 阅读(1254) 评论(0) 推荐(0) 编辑
摘要: Omni 概述 Omni 是一种依赖于 BTC 节点存储,并利用 OP_RETURN 字段特点的一种 BTC 代币协议。BTC 交易打包本身不会对该协议进行验证,也就意味着交易虽然被 BTC 打包记录下来,但并不一定交易成功,也就是 Omni 协议只是借助于 BTC 账本存储而已。 基于 Omni 阅读全文
posted @ 2019-12-02 11:33 ytymz 阅读(2560) 评论(0) 推荐(0) 编辑
摘要: 1. 修改配置文件 vim /etc/my.cnf 在 [mysqld] 中添加 skip-grant-tables 2. 重启 mysql 服务service mysql restartservice mysqld restart 3. 登录 mysqlmysql -u root或mysql -u 阅读全文
posted @ 2019-10-11 20:31 ytymz 阅读(871) 评论(0) 推荐(0) 编辑
摘要: 如下图为多索引,有联合索引 timestamp 和 txid 做为单个关键字段查询有效。 timestamp 和 txid 联合查询时,则联合索引 txid, timestamp, input_total 有效。 联合索引居左有效 举例 txid, timestamp, input_total 当查 阅读全文
posted @ 2019-09-18 14:07 ytymz 阅读(1607) 评论(0) 推荐(0) 编辑
摘要: 操作:执行 alter table aa_table drop column hehe; 删除 aa_table 表中 hehe 字段。导致 ERROR 1114 (HY000): The table 'sy_transaction_info' is full。 删除字段操作,磁盘可以空间需要大于表 阅读全文
posted @ 2019-09-16 12:04 ytymz 阅读(14458) 评论(0) 推荐(1) 编辑