NRS 1.7.4 硬分叉即将来临!
立即更新你的节点,否则将会处于分叉!
经过了漫长的等待,NRS1.7.4硬分叉终于来到了621000区块高度,一些新的功能也将激活。
在此下载NRS 1.7.4 :
https://nxtforum.org/nrs-releases/nrs-v1-7-4/
新功能
Nxt的核心开发者Jean-Luc 写道:
1.7系类的新功能和改善都在1.7.0e~1.7.3e的变更日志中。
简单的汇总如下;
混币, 完全去中心化的混币,改善了账户隐私。
账户控制,基于分期交易,相当于多重签名。
立即释放,特定类型分期交易批准立即释放。
区块时间优化,平均60秒,出现长时间区块的可能性极低。
账户属性,给用户账户分配任意名称/数值。
单资产,用于代表某个可交易的单个对象。
动态交易费, 与交易大小成比例的交易费。
交易界面优化。
数据云,允许用户上传和下载小文档或任意数据内容。该功能目前就能用,不用到分叉之后。
不兼容的API变化
在1.6系列中就有不兼容的API变化。这些变化不会影响只运行NRS客户端的普通用户。
详细的API帖子: https://nxtforum.org/nrs-releases/nrs-v1-6-2/msg199198/#msg199198, 在 1.6.0e, 1.6.1e 和 1.6.2 中也讨论了这些API变化。
API变化汇总
EvilDave / NxtFoundation 编写的汇总:
1. A number of API calls, which in 1.5.15 and previous releases return
additional information, at a performance cost, have had their defaults
modified not to return those extra fields unless specifically
requested. The format of the API response has not changed, only what
fields are returned by default. If your code uses any of those APIs and
in some invocations needs the additional fields, make sure to add the
corresponding “include” parameters in those places.
2. The getAccountTransactions and getAccountTransactionIDs APIs,
deprecated in 1.5 have been removed in 1.6. Use
getBlockchainTransactions instead and make sure to handle correctly the
phased transactions. Some enhancements to getBlockchainTransactions,
such as being able to get only executed phased (or not phased)
transactions, introduced in 1.6.1e, should make that easier.
3. Some APIs no longer do a detailed error checking of the user input.
Any APIs that accept an object id such as account, asset, or currency,
but do not need to retrieve the actual object, no longer check for its
existence. Such APIs will now return an empty result list instead of an
error, when supplied for example with non-existent asset id.
4. Asset transfers to the Genesis account are now treated as deletion
of asset shares, and as such are not retrievable using the
getAssetTransfers API. The quantityQNT in the asset JSON returned by
APIs such as getAsset now corrects for such share deletion. The
original asset quantity issued is returned as initialQuantityQNT in the
asset JSON.
从1.5.15升级到1.6.2时,需要考虑以上API的不兼容性。1.7的API与1.6.2的是一致的,无需调整。
除了API的变化,在1.7.4还有其它的变化:
1. 1.7版本中的交易费将不再是固定的(目前是1NXT),而是根据交易大小动态调整的。系统会自动计算交易所需的最小交易费。
2. 永久信息(加密的或未加密的)的允许的最大字节数也从1000字节减少到160字节。如果你使用了永久信息,无论交易类型是什么,信息大小都不能超过160个字节。永久信息的交易费也按照信息的实际大小会按比例增加,强烈推荐使用可删减信息。创建可删减信息唯一需要的就是向相应的交易创建API调用增加 messageIsPrunable=true 参数。交易JSON的格式对永久信息和可删减信息都是一样的(这就是为什么它们不能在同一个交易中共存的原因),因此解析JSON回应无需改变。可删减信息会在90天后自动删除。如果你的应用中需要将这些信息存留的时间更长或永久存留,你可以通过配置nxt.properties 文件,这样它就可以从Nxt网络中的备份节点那里获取到这些过期删减信息。
请参见论坛关于可删减信息和费用调整的讨论。
我们也设立了邮件名单,从而可以更好地与Nxt开发团队沟通,如果你在运营基于Nxt的项目,请在这里登记:
http://nxt.org/cgi-bin/mailman/listinfo/nrs-development
来源: https://nxtforum.org/nrs-releases/nrs-v1-6-2/msg201497/#msg201497