-
unixfs: fix `dagTruncate` to preserve node type · 65a18ed6
Extract the original `FSNode` passed inside the `ipld.Node` argument and modify its `Blocksizes` (removing all of them and re-adding the ones that were not truncated). In contrast, the replaced code was creating a new `FSNode` that was not preserving some of the features of the original one. Change `TRUNC_HASH` values in `sharness` that were created with the bug to the correct values. License: MIT Signed-off-by:Lucas Molas <schomatis@gmail.com>
由 Lucas Molas 提交于65a18ed6
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| .. | ||
| dagmodifier.go | 正在载入提交数据... | |
| dagmodifier_test.go | 正在载入提交数据... |