Find the source code location of the Fabric ledger file

The source code location of Fabric's account book file is as follows:
Insert picture description here
There is a test file in this directory. Use the following commands to test and observe the test results.
Insert picture description here
The test log shows that a folder /tmp/lstoreXXXXX will be created during the test. However, after the test is over, this folder cannot be seen. The reason is that there is a statement in the test function of store_test.go that deletes this folder. After commenting this sentence and testing again, you can see the ledger file generated by the test.
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_18807043/article/details/105536894