-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It makes StateSwarmInformed have all the methods of a ThreePhase
struct, although they still behave as if they are attached to a
threephase struct.

So HandleUpdate goes through to the Threephase struct as do some other
functions.

http://golang.org/doc/effective_go.html#embedding

On 03/10/2014 11:11 PM, DavidVorick wrote:
> In src/swarm/stateinformed.go:
> 
>> */ type StateSwarmInformed struct { -	chain      *Blockchain -
>> lock       *sync.Mutex -	heartbeats map[string]*Heartbeat -
>> signatures map[string]map[string]string -	stage2     string -
>> nextphase  string -	phasetimer <-chan time.Time +	chain
>> *Blockchain +	stage2 string +	*ThreePhase
> 
> what does this mean, is it just a general pointer?
> 
> golang newbie question, sorry
> 
> — Reply to this email directly or view it on GitHub 
> <https://github.com/Siacoin/Sia/pull/39/files#r10460407>.
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTHn9fAAoJEHP1nN3uZoHu7hAIALpjERdUU3ARc3gdGzy8T2Ki
8mF8l7vN7ZzNsw34KpIsBDPsdaajuRRlZGpiRnekKzT4vCZpZ1Y7e2cYwTrycTnf
GJConNQtnaRuMKtDvbVzm1WLFTHw5UmfFEwSgoivLLrkhFN975f6zKHHbAv4SpXB
miMULuNIauYiFlYcZw+HUUC+fcEync43b/2cbtt09d8tkx+ncQCBckIFTtCx5xXv
QQuw3qmbJBnq7E4puy3g9MnjuaLyP6oG76clamNpR0QC3TmVsapC82tlN9Um2bEw
3hZOJoYbSJ6ModrEKDv5gZmEDKcVDk/qAjmM6+V34WC7sN2tl6fvEsY4ETR0aSY=
=ta/t
-----END PGP SIGNATURE-----