Bug-fixing

1. fix put warning
2. fix sync-socket data-fetching
3. fix root digest calculation