Skip to content

Commit

Permalink
Update v2.7.6.md (neo-project#590)
Browse files Browse the repository at this point in the history
Add some detail for getting log
  • Loading branch information
superboyiii authored and Celia18305 committed Aug 21, 2018
1 parent 3d49f8f commit 1522f73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zh-cn/exchange/v2.7.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ NEO-CLI API 中的 getblock <index> [verbose] 方法提供了获取区块信息
```
dotnet neo-cli.dll --rpc --log
```
> [!Note]
>
> - 必须注意的是一旦开启 --rpc, 就会从当前区块高度开始获取对应区块的log。 如果从0开始获取,log文件将是海量的,会大量占用 linux 系统下的 inode 数, 甚至可能导致 no space left on device 的 exception。 对于交易所来说如果列入了 nep-5 资产, 只需从该资产的发行区块高度开始捕获 log 即可。如果只列入UTXO, 那只需根据具体所需从相应的区块高度开始捕获Log。
> - 强烈建议定期删除无用的log,比如 30 天前的 log, 以避免 inode 爆满。
可以看到在根目录下生成了一个 ApplicationLogs 文件夹,完整的合约日志会记录到该目录下,每笔 NEP-5 交易会记录在一个 JSON 文件中,文件名为该交易的 txid。

Expand Down

0 comments on commit 1522f73

Please sign in to comment.