mirror of
https://github.com/corda/corda.git
synced 2025-06-22 09:08:49 +00:00
Add comment to explain why AbstractNode is marked as SingletonSerializeAsToken
This commit is contained in:
@ -54,6 +54,9 @@ import java.util.*
|
||||
/**
|
||||
* A base node implementation that can be customised either for production (with real implementations that do real
|
||||
* I/O), or a mock implementation suitable for unit test environments.
|
||||
*
|
||||
* Marked as SingletonSerializeAsToken to prevent the invisible reference to AbstractNode in the ServiceHub accidentally
|
||||
* sweeping up the Node into the Kryo checkpoint serialization via any protocols holding a reference to ServiceHub.
|
||||
*/
|
||||
// TODO: Where this node is the initial network map service, currently no networkMapService is provided.
|
||||
// In theory the NodeInfo for the node should be passed in, instead, however currently this is constructed by the
|
||||
|
Reference in New Issue
Block a user