Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法获得Corda State的大小?
我需要知道我的州在分类帐中占用了多少空间,但我不知道如何获取这些信息。
情况很复杂。CorDapp 中的状态是一个简单的 Java 类,但它的信息分布在多个表中,这取决于它的历史、状态的变化以及您如何使用该状态(例如,如果您使用 Token SDK 从中制作一个令牌) .
获取此信息的唯一合理方法是查询您正在使用的数据库,以在状态的整个生命周期中监控Vault 表的大小并进行一些计算。