此版本为数据库迁移脚本增加了日志记录。ADAMANT 节点现在会在执行迁移脚本前后记录日志:
[inf] 2023-12-22 04:00:25 | Found 5 pending migrations. Start executing, this may take a while…
[inf] 2023-12-22 04:17:13 | Migrations have been successfully completed.
cors.origin 属性的默认值已从反映请求源(true)更改为 *。请参阅文档,了解有关 ADAMANT 节点 CORS 配置的更多信息。
{
"cors": {
"origin": "*" // default
}
}
config.json 文件已被添加到 .gitignore 中。用户现在需要自行创建 config.json 文件,或复制 config.default.json 才能启动 ADAMANT 节点。
cp config.default.json config.json
Breaking changes
Access-Control-Allow-Origin 的默认 CORS 头值已从反映请求源更改为 *。依赖此前反射源行为的用户应相应更新其 config.json。此外,config.json 现在被 git 忽略,因此用户必须在启动节点前手动创建或复制该文件。